Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.001265/0.001265, allocations: 108.5 kB / 16.46 MB, free: 6.496 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.001186/0.001186, allocations: 196.1 kB / 17.4 MB, free: 5.684 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.418/1.418, allocations: 207.6 MB / 225.8 MB, free: 11.52 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.2183/0.2183, allocations: 44.25 MB / 319.9 MB, free: 12.86 MB / 270.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.002082/0.002082, allocations: 72.45 kB / 453.5 MB, free: 9.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1178, allocations: 61.01 MB / 0.5024 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01239/0.1302, allocations: 10.04 MB / 0.5123 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008193/0.1383, allocations: 3.731 MB / 0.5159 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.14, allocations: 51.88 kB / 0.5159 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004572/0.1446, allocations: 1.974 MB / 0.5179 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005186/0.1498, allocations: 1.778 MB / 0.5196 GB, free: 10.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.1515, allocations: 0.5731 MB / 0.5202 GB, free: 9.836 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00642/0.1579, allocations: 3.747 MB / 0.5238 GB, free: 6.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003725/0.1617, allocations: 2.191 MB / 0.526 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002684/0.1643, allocations: 1.281 MB / 0.5272 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003465/0.1678, allocations: 1.986 MB / 0.5292 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.1689, allocations: 275.9 kB / 0.5294 GB, free: 292 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2382/0.407, allocations: 1.175 MB / 0.5306 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002388/0.4094, allocations: 1.738 MB / 0.5323 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003332/0.4128, allocations: 2.002 MB / 0.5342 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009592/0.4224, allocations: 6.608 MB / 0.5407 GB, free: 9.469 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4224, allocations: 0 / 0.5407 GB, free: 9.469 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4224, allocations: 3.656 kB / 0.5407 GB, free: 9.469 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000239/0.4226, allocations: 0 / 0.5407 GB, free: 9.469 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01363/0.4362, allocations: 4.456 MB / 0.545 GB, free: 7.574 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.4363, allocations: 13.3 kB / 0.545 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001505/0.4378, allocations: 0.6438 MB / 0.5457 GB, free: 7.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07984/0.5176, allocations: 7.058 MB / 0.5526 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007147/0.5248, allocations: 2.864 MB / 0.5554 GB, free: 6.055 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.525, allocations: 194.6 kB / 0.5555 GB, free: 5.996 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007983/0.5258, allocations: 261.7 kB / 0.5558 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/0.5375, allocations: 8.692 MB / 0.5643 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.521e-05/0.5376, allocations: 41.95 kB / 0.5643 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003549/0.538, allocations: 128.7 kB / 0.5644 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002585/0.5406, allocations: 1.834 MB / 0.5662 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.5535, allocations: 7.335 MB / 0.5734 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04474/0.5982, allocations: 33.9 MB / 0.6065 GB, free: 9.609 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00518/0.6034, allocations: 2.445 MB / 0.6089 GB, free: 7.027 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.605, allocations: 1.038 MB / 0.6099 GB, free: 5.984 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003948/0.6053, allocations: 334.5 kB / 0.6102 GB, free: 5.609 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.6054, allocations: 47.12 kB / 0.6103 GB, free: 5.555 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 3.456e-06/0.6054, allocations: 0 / 0.6103 GB, free: 5.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02289/0.6283, allocations: 9.148 MB / 0.6192 GB, free: 12.37 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.6284, allocations: 192.6 kB / 0.6194 GB, free: 12.14 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006151/0.6346, allocations: 3.987 MB / 0.6233 GB, free: 8.172 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002371/0.6348, allocations: 45.7 kB / 0.6233 GB, free: 8.121 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002458/0.6373, allocations: 3.088 MB / 0.6263 GB, free: 5.051 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006207/0.6379, allocations: 0.568 MB / 0.6269 GB, free: 4.488 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001558/0.6394, allocations: 1.178 MB / 0.628 GB, free: 3.305 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.6396, allocations: 309.1 kB / 0.6283 GB, free: 3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002728/0.6423, allocations: 1.698 MB / 0.63 GB, free: 1.297 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005802/0.6481, allocations: 5.511 MB / 0.6354 GB, free: 9.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00953/0.6576, allocations: 7.857 MB / 0.6431 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.379e-05/0.6577, allocations: 40 kB / 0.6431 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01302/0.6707, allocations: 7.099 MB / 0.65 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.983e-05/0.6708, allocations: 63.94 kB / 0.6501 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001596/0.671, allocations: 136 kB / 0.6502 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009658/0.672, allocations: 422.6 kB / 0.6506 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004166/0.6761, allocations: 1.322 MB / 0.6519 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004231/0.6804, allocations: 3.366 MB / 0.6552 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004451/0.6848, allocations: 306.3 kB / 0.6555 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009165/0.6857, allocations: 368 kB / 0.6558 GB, free: 3.473 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (716): * Single equations (assignments): 712 * 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.004355/0.6901, allocations: 1.943 MB / 0.6577 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008089/0.6909, allocations: 349.6 kB / 0.6581 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00352/0.6944, allocations: 1.695 MB / 0.6597 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.6944, allocations: 16 kB / 0.6597 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.6944, allocations: 4 kB / 0.6597 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.6945, allocations: 3.984 kB / 0.6597 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.7085, allocations: 5.438 MB / 0.6651 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.7085, allocations: 4 kB / 0.6651 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.71, allocations: 183.7 kB / 0.6652 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.711, allocations: 224.8 kB / 0.6655 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.7112, allocations: 23.98 kB / 0.6655 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005069/0.7162, allocations: 2.711 MB / 0.6681 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.7162, allocations: 3.938 kB / 0.6681 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005493/0.7217, allocations: 3.563 MB / 0.6716 GB, free: 3.074 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/0.7234, allocations: 0.5416 MB / 0.6721 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003956/0.7238, allocations: 20 kB / 0.6722 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.7249, allocations: 55.06 kB / 0.6722 GB, free: 2.441 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.7251, allocations: 76.34 kB / 0.6723 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.068e-05/0.7252, allocations: 35.98 kB / 0.6723 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004403/0.7296, allocations: 2.489 MB / 0.6747 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7296, allocations: 0 / 0.6747 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005125/0.7347, allocations: 0.8515 MB / 0.6756 GB, free: 15.01 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * 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.005978/0.7407, allocations: 4.187 MB / 0.6797 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007059/0.7478, allocations: 3.956 MB / 0.6835 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.7478, allocations: 0 / 0.6835 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.7493, allocations: 0.9428 MB / 0.6844 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.7516, allocations: 408 kB / 0.6848 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06589/0.8175, allocations: 40.31 MB / 0.7242 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004054/0.8216, allocations: 2.952 MB / 0.7271 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004353/0.8259, allocations: 1.811 MB / 0.7288 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002755/0.8287, allocations: 1.655 MB / 0.7305 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of SimCode: time 1.773e-06/0.8287, allocations: 0 / 0.7305 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.343/1.172, allocations: 58.24 MB / 0.7873 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.18/21.35, allocations: 0.9375 kB / 0.7873 GB, free: 211.2 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches