Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_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.001521/0.001521, allocations: 112.7 kB / 17.33 MB, free: 6.016 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.001747/0.001747, allocations: 193.3 kB / 18.25 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 241.9 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2217/0.2217, allocations: 44.17 MB / 336.2 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 67.47 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1078, allocations: 60.83 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03232/0.1401, allocations: 33.51 MB / 0.4906 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01782/0.158, allocations: 7.556 MB / 0.4979 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008334/0.1664, allocations: 139.7 kB / 0.4981 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.1702, allocations: 1.609 MB / 0.4996 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004447/0.1747, allocations: 1.487 MB / 0.5011 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.1762, allocations: 0.5304 MB / 0.5016 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2554/0.4317, allocations: 3.779 MB / 0.5053 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003621/0.4354, allocations: 2.34 MB / 0.5076 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.4374, allocations: 1.139 MB / 0.5087 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002671/0.4401, allocations: 1.756 MB / 0.5104 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000656/0.4408, allocations: 224.5 kB / 0.5106 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/0.4431, allocations: 1.131 MB / 0.5117 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002009/0.4451, allocations: 1.471 MB / 0.5132 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002136/0.4473, allocations: 1.753 MB / 0.5149 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009096/0.4564, allocations: 5.553 MB / 0.5203 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.4564, allocations: 2.109 kB / 0.5203 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4565, allocations: 0 / 0.5203 GB, free: 9.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002309/0.4567, allocations: 0 / 0.5203 GB, free: 9.113 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01671/0.4734, allocations: 3.861 MB / 0.5241 GB, free: 7.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.035e-05/0.4735, allocations: 11.94 kB / 0.5241 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001974/0.4755, allocations: 0.5581 MB / 0.5246 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08908/0.5646, allocations: 6.953 MB / 0.5314 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008612/0.5733, allocations: 2.484 MB / 0.5338 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.5735, allocations: 164.2 kB / 0.534 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001499/0.575, allocations: 224.3 kB / 0.5342 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01815/0.5932, allocations: 7.523 MB / 0.5416 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001413/0.5934, allocations: 44.16 kB / 0.5416 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004965/0.5939, allocations: 108.4 kB / 0.5417 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004054/0.598, allocations: 1.603 MB / 0.5433 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01749/0.6155, allocations: 6.341 MB / 0.5495 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05574/0.6713, allocations: 30.35 MB / 0.5791 GB, free: 6.211 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005892/0.6772, allocations: 2.18 MB / 0.5812 GB, free: 3.898 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.6789, allocations: 1.07 MB / 0.5823 GB, free: 2.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004516/0.6794, allocations: 323.1 kB / 0.5826 GB, free: 2.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.6794, allocations: 58.97 kB / 0.5826 GB, free: 2.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 6.462e-06/0.6794, allocations: 0 / 0.5826 GB, free: 2.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.0379/0.7173, allocations: 10.92 MB / 0.5933 GB, free: 7.379 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.7175, allocations: 195.8 kB / 0.5935 GB, free: 7.148 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007348/0.7249, allocations: 3.674 MB / 0.5971 GB, free: 3.477 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002027/0.7251, allocations: 48.28 kB / 0.5971 GB, free: 3.426 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/0.7273, allocations: 2.598 MB / 0.5997 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006703/0.728, allocations: 0.5318 MB / 0.6002 GB, free: 308 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002056/0.73, allocations: 1.05 MB / 0.6012 GB, free: 15.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7301, allocations: 309 kB / 0.6015 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.7328, allocations: 1.63 MB / 0.6031 GB, free: 13.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/0.7397, allocations: 4.993 MB / 0.608 GB, free: 6.668 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.7499, allocations: 7.197 MB / 0.615 GB, free: 14.29 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001846/0.7501, allocations: 39.94 kB / 0.615 GB, free: 14.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01348/0.7636, allocations: 6.584 MB / 0.6215 GB, free: 8.383 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.7638, allocations: 60.03 kB / 0.6215 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002116/0.764, allocations: 116 kB / 0.6216 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.7651, allocations: 400.6 kB / 0.622 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/0.7693, allocations: 1.194 MB / 0.6232 GB, free: 6.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004217/0.7736, allocations: 3.325 MB / 0.6264 GB, free: 3.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005009/0.7786, allocations: 291.3 kB / 0.6267 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/0.7797, allocations: 324 kB / 0.627 GB, free: 2.586 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (643): * Single equations (assignments): 639 * 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.004862/0.7846, allocations: 1.731 MB / 0.6287 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009592/0.7856, allocations: 304.1 kB / 0.629 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003991/0.7896, allocations: 1.729 MB / 0.6307 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.488e-05/0.7896, allocations: 16 kB / 0.6307 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.7897, allocations: 4 kB / 0.6307 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.7897, allocations: 3.984 kB / 0.6307 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.8023, allocations: 5.353 MB / 0.6359 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.8024, allocations: 4 kB / 0.6359 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.8034, allocations: 191.7 kB / 0.6361 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007651/0.8042, allocations: 236.6 kB / 0.6364 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.8044, allocations: 23.98 kB / 0.6364 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00318/0.8075, allocations: 2.695 MB / 0.639 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.8076, allocations: 0 / 0.639 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005827/0.8134, allocations: 3.717 MB / 0.6426 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/0.8151, allocations: 365 kB / 0.643 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/0.8161, allocations: 28 kB / 0.643 GB, free: 1.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.8179, allocations: 63.92 kB / 0.6431 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.8181, allocations: 72.55 kB / 0.6431 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.8182, allocations: 34.11 kB / 0.6432 GB, free: 1.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007351/0.8256, allocations: 2.297 MB / 0.6454 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7.92e-07/0.8256, allocations: 0 / 0.6454 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008157/0.8338, allocations: 0.7734 MB / 0.6462 GB, free: 14.71 MB / 0.4981 GB 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 (102): * Single equations (assignments): 98 * 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.008205/0.842, allocations: 4.348 MB / 0.6504 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007644/0.8497, allocations: 4.304 MB / 0.6546 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/0.8497, allocations: 0 / 0.6546 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.8513, allocations: 1.08 MB / 0.6557 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/0.8548, allocations: 369.7 kB / 0.656 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08338/0.9382, allocations: 42.46 MB / 0.6975 GB, free: 3.531 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005411/0.9436, allocations: 2.68 MB / 0.7001 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.2274/1.171, allocations: 1.677 MB / 0.7018 GB, free: 208.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/1.174, allocations: 1.447 MB / 0.7032 GB, free: 208.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.343e-06/1.174, allocations: 0 / 0.7032 GB, free: 208.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09196/1.266, allocations: 57.84 MB / 0.7597 GB, free: 168.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/1.266, allocations: 212.2 kB / 0.7599 GB, free: 168.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.648/4.914, allocations: 0 / 0.7599 GB, free: 168.2 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches