Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001433, allocations: 110.2 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2304/0.2304, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 71.91 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1212, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01194/0.1332, allocations: 9.421 MB / 0.4966 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00853/0.1418, allocations: 3.598 MB / 0.5001 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001798/0.1436, allocations: 51.81 kB / 0.5002 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003853/0.1475, allocations: 1.686 MB / 0.5018 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005139/0.1527, allocations: 1.646 MB / 0.5034 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.1545, allocations: 0.5536 MB / 0.504 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00609/0.1606, allocations: 3.517 MB / 0.5074 GB, free: 7.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003465/0.1641, allocations: 2.263 MB / 0.5096 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.1665, allocations: 1.156 MB / 0.5107 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002894/0.1695, allocations: 1.627 MB / 0.5123 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000805/0.1703, allocations: 240 kB / 0.5125 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002807/0.1731, allocations: 1.119 MB / 0.5136 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002252/0.1754, allocations: 1.512 MB / 0.5151 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00304/0.1785, allocations: 1.798 MB / 0.5169 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008992/0.1875, allocations: 5.968 MB / 0.5227 GB, free: 7.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.1876, allocations: 3.938 kB / 0.5227 GB, free: 7.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1876, allocations: 0 / 0.5227 GB, free: 7.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.1878, allocations: 4 kB / 0.5227 GB, free: 7.977 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01266/0.2005, allocations: 4.1 MB / 0.5267 GB, free: 3.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.2005, allocations: 11.89 kB / 0.5267 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001461/0.202, allocations: 0.5794 MB / 0.5273 GB, free: 3.203 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3216/0.5236, allocations: 6.99 MB / 0.5341 GB, free: 36.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005677/0.5293, allocations: 2.732 MB / 0.5368 GB, free: 35.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.5295, allocations: 176.4 kB / 0.537 GB, free: 35.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007085/0.5302, allocations: 227.2 kB / 0.5372 GB, free: 35.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.5432, allocations: 7.823 MB / 0.5448 GB, free: 32.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.5434, allocations: 44.27 kB / 0.5448 GB, free: 32.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/0.5437, allocations: 115.9 kB / 0.545 GB, free: 32.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002924/0.5467, allocations: 1.664 MB / 0.5466 GB, free: 32.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01233/0.559, allocations: 6.634 MB / 0.5531 GB, free: 29.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02924/0.5883, allocations: 31.15 MB / 0.5835 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004841/0.5932, allocations: 2.269 MB / 0.5857 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.5949, allocations: 1.129 MB / 0.5868 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004549/0.5954, allocations: 327.6 kB / 0.5871 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.5955, allocations: 43.12 kB / 0.5872 GB, free: 12.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 3.867e-06/0.5955, allocations: 0 / 0.5872 GB, free: 12.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.0373/0.6328, allocations: 11.58 MB / 0.5985 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/0.633, allocations: 192.6 kB / 0.5987 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006184/0.6392, allocations: 3.761 MB / 0.6023 GB, free: 12.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002899/0.6396, allocations: 41.7 kB / 0.6024 GB, free: 12.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002302/0.6419, allocations: 2.807 MB / 0.6051 GB, free: 10.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007737/0.6427, allocations: 0.5777 MB / 0.6057 GB, free: 9.473 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/0.6443, allocations: 1.092 MB / 0.6067 GB, free: 8.371 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.6444, allocations: 305.1 kB / 0.607 GB, free: 8.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002926/0.6474, allocations: 1.693 MB / 0.6087 GB, free: 6.371 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006155/0.6535, allocations: 5.138 MB / 0.6137 GB, free: 15.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009893/0.6635, allocations: 7.431 MB / 0.621 GB, free: 6.359 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001161/0.6636, allocations: 36.88 kB / 0.621 GB, free: 6.324 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01423/0.6779, allocations: 6.81 MB / 0.6276 GB, free: 15.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.678, allocations: 56 kB / 0.6277 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001952/0.6782, allocations: 120 kB / 0.6278 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.6793, allocations: 412.9 kB / 0.6282 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004308/0.6837, allocations: 1.244 MB / 0.6294 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004546/0.6882, allocations: 3.332 MB / 0.6327 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004962/0.6933, allocations: 287.6 kB / 0.6329 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009922/0.6943, allocations: 336 kB / 0.6333 GB, free: 9.602 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (665): * Single equations (assignments): 661 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003939/0.6983, allocations: 1.797 MB / 0.635 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008862/0.6992, allocations: 325.8 kB / 0.6353 GB, free: 7.477 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.7032, allocations: 1.857 MB / 0.6371 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.155e-05/0.7033, allocations: 16 kB / 0.6372 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.7033, allocations: 3.938 kB / 0.6372 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.7033, allocations: 11.97 kB / 0.6372 GB, free: 5.574 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.7145, allocations: 5.565 MB / 0.6426 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.7145, allocations: 0 / 0.6426 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.7157, allocations: 215.7 kB / 0.6428 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007476/0.7165, allocations: 232.6 kB / 0.643 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.7167, allocations: 31.97 kB / 0.6431 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.72, allocations: 2.698 MB / 0.6457 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.7201, allocations: 3.938 kB / 0.6457 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006297/0.7264, allocations: 3.917 MB / 0.6495 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.7278, allocations: 0.5534 MB / 0.6501 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004464/0.7283, allocations: 20 kB / 0.6501 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.7295, allocations: 67.91 kB / 0.6502 GB, free: 8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.7297, allocations: 80.55 kB / 0.6502 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.7298, allocations: 43.98 kB / 0.6503 GB, free: 7.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003874/0.7337, allocations: 2.346 MB / 0.6526 GB, free: 5.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7337, allocations: 0 / 0.6526 GB, free: 5.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004301/0.7381, allocations: 0.8124 MB / 0.6534 GB, free: 4.734 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006988/0.7451, allocations: 4.549 MB / 0.6578 GB, free: 152 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007549/0.7527, allocations: 4.107 MB / 0.6618 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.7527, allocations: 0 / 0.6618 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.7548, allocations: 1.153 MB / 0.6629 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.7574, allocations: 379.2 kB / 0.6633 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06652/0.8239, allocations: 38.17 MB / 0.7006 GB, free: 15.15 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004398/0.8284, allocations: 2.754 MB / 0.7033 GB, free: 12.37 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004532/0.8329, allocations: 1.758 MB / 0.705 GB, free: 10.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0028/0.8358, allocations: 1.515 MB / 0.7065 GB, free: 9.094 MB / 0.545 GB Notification: Performance of SimCode: time 1.283e-06/0.8358, allocations: 0 / 0.7065 GB, free: 9.094 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3328/1.169, allocations: 55.51 MB / 0.7607 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.74/19.91, allocations: 8 kB / 0.7607 GB, free: 194.1 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches