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.001459/0.001459, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001774/0.001774, allocations: 184.9 kB / 18.71 MB, free: 4.344 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.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2043/0.2043, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3128, allocations: 60.83 MB / 0.5184 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009318/0.3222, allocations: 9.018 MB / 0.5272 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006953/0.3292, allocations: 3.546 MB / 0.5307 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.3305, allocations: 47.5 kB / 0.5307 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003154/0.3337, allocations: 1.684 MB / 0.5324 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003988/0.3377, allocations: 1.595 MB / 0.5339 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.3391, allocations: 0.5525 MB / 0.5345 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004832/0.3439, allocations: 3.584 MB / 0.538 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/0.3467, allocations: 2.213 MB / 0.5401 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.3485, allocations: 1.119 MB / 0.5412 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.3507, allocations: 1.565 MB / 0.5428 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004743/0.3512, allocations: 223.8 kB / 0.543 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001822/0.353, allocations: 1.112 MB / 0.5441 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001157/0.3542, allocations: 1.457 MB / 0.5455 GB, free: 308 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.3557, allocations: 1.728 MB / 0.5472 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.3608, allocations: 5.699 MB / 0.5527 GB, free: 8.844 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3608, allocations: 8 kB / 0.5527 GB, free: 8.836 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3608, allocations: 0 / 0.5527 GB, free: 8.836 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001164/0.361, allocations: 0 / 0.5527 GB, free: 8.836 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.00786/0.3688, allocations: 3.856 MB / 0.5565 GB, free: 4.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3689, allocations: 12.03 kB / 0.5565 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006677/0.3696, allocations: 0.5625 MB / 0.5571 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09485/0.4644, allocations: 6.948 MB / 0.5639 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006187/0.4707, allocations: 2.525 MB / 0.5663 GB, free: 10.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.4708, allocations: 168.5 kB / 0.5665 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008661/0.4717, allocations: 219.7 kB / 0.5667 GB, free: 10.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.4829, allocations: 7.525 MB / 0.574 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-05/0.483, allocations: 35.66 kB / 0.5741 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003941/0.4834, allocations: 111.9 kB / 0.5742 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/0.486, allocations: 1.605 MB / 0.5758 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/0.4965, allocations: 6.339 MB / 0.5819 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03234/0.5289, allocations: 30.22 MB / 0.6115 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004333/0.5332, allocations: 2.171 MB / 0.6136 GB, free: 8.656 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.5346, allocations: 1.078 MB / 0.6146 GB, free: 7.566 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003659/0.535, allocations: 323.6 kB / 0.6149 GB, free: 7.195 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.535, allocations: 46.94 kB / 0.615 GB, free: 7.141 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.536e-06/0.535, allocations: 0 / 0.615 GB, free: 7.141 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03375/0.5688, allocations: 10.93 MB / 0.6257 GB, free: 12.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.5689, allocations: 196.5 kB / 0.6258 GB, free: 11.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005107/0.5741, allocations: 3.666 MB / 0.6294 GB, free: 8.176 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.5742, allocations: 49.61 kB / 0.6295 GB, free: 8.125 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.5759, allocations: 2.597 MB / 0.632 GB, free: 5.488 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005336/0.5765, allocations: 0.5325 MB / 0.6325 GB, free: 4.949 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00141/0.5779, allocations: 1.051 MB / 0.6335 GB, free: 3.887 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.065e-05/0.578, allocations: 305.1 kB / 0.6338 GB, free: 3.586 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.5804, allocations: 1.63 MB / 0.6354 GB, free: 1.949 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/0.5849, allocations: 4.992 MB / 0.6403 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007882/0.5928, allocations: 7.192 MB / 0.6473 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.593, allocations: 39.94 kB / 0.6474 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01096/0.6039, allocations: 6.585 MB / 0.6538 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.6041, allocations: 60.25 kB / 0.6539 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/0.6042, allocations: 124 kB / 0.654 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009716/0.6052, allocations: 408.4 kB / 0.6544 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003568/0.6088, allocations: 1.193 MB / 0.6555 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003628/0.6125, allocations: 3.305 MB / 0.6588 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0045/0.617, allocations: 299.4 kB / 0.659 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009779/0.618, allocations: 324 kB / 0.6594 GB, free: 5.941 MB / 0.5137 GB 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.003137/0.6211, allocations: 1.725 MB / 0.661 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007281/0.6219, allocations: 308 kB / 0.6613 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.6251, allocations: 1.726 MB / 0.663 GB, free: 2.16 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.901e-05/0.6252, allocations: 16 kB / 0.663 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.6252, allocations: 4 kB / 0.663 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.6252, allocations: 7.969 kB / 0.663 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.6355, allocations: 5.303 MB / 0.6682 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.6356, allocations: 4 kB / 0.6682 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009973/0.6366, allocations: 195.7 kB / 0.6684 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006951/0.6373, allocations: 228.6 kB / 0.6686 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.6374, allocations: 27.98 kB / 0.6687 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002853/0.6403, allocations: 2.691 MB / 0.6713 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6403, allocations: 4.062 kB / 0.6713 GB, free: 9.449 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005139/0.6454, allocations: 3.727 MB / 0.6749 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008591/0.6463, allocations: 361 kB / 0.6753 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004939/0.6468, allocations: 20 kB / 0.6753 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.6481, allocations: 63.92 kB / 0.6754 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.6483, allocations: 68.62 kB / 0.6754 GB, free: 5.172 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.6484, allocations: 39.98 kB / 0.6755 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003681/0.6521, allocations: 2.297 MB / 0.6777 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6521, allocations: 0 / 0.6777 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003778/0.6559, allocations: 0.7734 MB / 0.6785 GB, free: 2.074 MB / 0.5294 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.005787/0.6617, allocations: 4.37 MB / 0.6827 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006249/0.668, allocations: 3.936 MB / 0.6866 GB, free: 9.742 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.668, allocations: 0 / 0.6866 GB, free: 9.742 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001613/0.6697, allocations: 1.073 MB / 0.6876 GB, free: 8.656 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.6724, allocations: 390.7 kB / 0.688 GB, free: 8.277 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2729/0.9453, allocations: 36.77 MB / 0.7239 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003004/0.9483, allocations: 2.684 MB / 0.7265 GB, free: 184.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003595/0.952, allocations: 1.706 MB / 0.7282 GB, free: 184.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/0.9536, allocations: 1.446 MB / 0.7296 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of SimCode: time 7.11e-07/0.9536, allocations: 1.375 kB / 0.7296 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08147/1.035, allocations: 54.78 MB / 0.7831 GB, free: 142.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.52/22.55, allocations: 17.69 kB / 0.7831 GB, free: 142.9 MB / 0.5762 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