Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001125/0.001126, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.2279/0.2279, allocations: 44.19 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 68.08 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4346, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01116/0.4458, allocations: 9.243 MB / 0.5279 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008281/0.4541, allocations: 3.582 MB / 0.5314 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.4561, allocations: 50.94 kB / 0.5315 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004156/0.4602, allocations: 1.933 MB / 0.5334 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005409/0.4657, allocations: 1.644 MB / 0.535 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002097/0.4678, allocations: 0.5746 MB / 0.5355 GB, free: 7.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007557/0.4754, allocations: 3.703 MB / 0.5391 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004683/0.4801, allocations: 2.459 MB / 0.5415 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/0.4837, allocations: 1.198 MB / 0.5427 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004103/0.4878, allocations: 1.682 MB / 0.5444 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001271/0.4891, allocations: 248 kB / 0.5446 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003454/0.4926, allocations: 1.143 MB / 0.5457 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00252/0.4952, allocations: 1.586 MB / 0.5473 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003757/0.4989, allocations: 1.794 MB / 0.549 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009067/0.508, allocations: 5.948 MB / 0.5548 GB, free: 7.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.5081, allocations: 0 / 0.5548 GB, free: 7.141 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5081, allocations: 0 / 0.5548 GB, free: 7.141 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002615/0.5084, allocations: 7.938 kB / 0.5548 GB, free: 7.133 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01246/0.5208, allocations: 3.967 MB / 0.5587 GB, free: 3.098 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.5209, allocations: 8.031 kB / 0.5587 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01641/0.5373, allocations: 2.402 MB / 0.561 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006263/0.5436, allocations: 2.323 MB / 0.5633 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002017/0.5438, allocations: 181 kB / 0.5635 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.545, allocations: 251.9 kB / 0.5637 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.562, allocations: 8.153 MB / 0.5717 GB, free: 5.082 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002085/0.5622, allocations: 35.66 kB / 0.5717 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.5633, allocations: 119.9 kB / 0.5718 GB, free: 4.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003133/0.5664, allocations: 1.703 MB / 0.5735 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.5813, allocations: 6.892 MB / 0.5802 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04386/0.6252, allocations: 32.35 MB / 0.6118 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004972/0.6302, allocations: 2.477 MB / 0.6142 GB, free: 8.344 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.6318, allocations: 1.116 MB / 0.6153 GB, free: 7.215 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003919/0.6322, allocations: 327.3 kB / 0.6156 GB, free: 6.84 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.908e-05/0.6323, allocations: 54.5 kB / 0.6157 GB, free: 6.777 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 3.907e-06/0.6323, allocations: 0 / 0.6157 GB, free: 6.777 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02619/0.6585, allocations: 9.254 MB / 0.6247 GB, free: 13.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.6587, allocations: 192.5 kB / 0.6249 GB, free: 13.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007305/0.666, allocations: 3.808 MB / 0.6286 GB, free: 9.371 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002875/0.6663, allocations: 41.7 kB / 0.6287 GB, free: 9.324 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002574/0.6689, allocations: 2.785 MB / 0.6314 GB, free: 6.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009545/0.6699, allocations: 0.4902 MB / 0.6319 GB, free: 6.004 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002761/0.6726, allocations: 1.15 MB / 0.633 GB, free: 4.844 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.6728, allocations: 301.1 kB / 0.6333 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002849/0.6756, allocations: 1.709 MB / 0.635 GB, free: 2.832 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006241/0.6819, allocations: 5.33 MB / 0.6402 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009773/0.6917, allocations: 7.589 MB / 0.6476 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001883/0.6919, allocations: 40 kB / 0.6476 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01609/0.708, allocations: 7.189 MB / 0.6546 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.7082, allocations: 60 kB / 0.6547 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002321/0.7085, allocations: 128.8 kB / 0.6548 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.7101, allocations: 0.6641 MB / 0.6555 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004051/0.7142, allocations: 1.271 MB / 0.6567 GB, free: 8.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004875/0.7191, allocations: 4.086 MB / 0.6607 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004316/0.7235, allocations: 299.4 kB / 0.661 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/0.7247, allocations: 356 kB / 0.6613 GB, free: 4.055 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (691): * Single equations (assignments): 687 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004229/0.7289, allocations: 1.826 MB / 0.6631 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009199/0.7299, allocations: 308 kB / 0.6634 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/0.7339, allocations: 1.849 MB / 0.6652 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.734, allocations: 16 kB / 0.6652 GB, free: 32 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.734, allocations: 112 / 0.6652 GB, free: 32 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.734, allocations: 11.92 kB / 0.6652 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.7462, allocations: 5.332 MB / 0.6704 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/0.7462, allocations: 4.031 kB / 0.6704 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008708/0.7471, allocations: 159.8 kB / 0.6706 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001391/0.7485, allocations: 484.2 kB / 0.6711 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.7487, allocations: 19.94 kB / 0.6711 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00493/0.7536, allocations: 3.43 MB / 0.6744 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.7537, allocations: 0 / 0.6744 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/0.7599, allocations: 3.755 MB / 0.6781 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.7611, allocations: 361 kB / 0.6784 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008565/0.762, allocations: 16 kB / 0.6784 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/0.7635, allocations: 63.98 kB / 0.6785 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.7637, allocations: 68.34 kB / 0.6786 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.7638, allocations: 28 kB / 0.6786 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004928/0.7688, allocations: 2.366 MB / 0.6809 GB, free: 15.71 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/0.7688, allocations: 0 / 0.6809 GB, free: 15.71 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005844/0.7746, allocations: 0.828 MB / 0.6817 GB, free: 14.89 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.000494/0.7751, allocations: 155 kB / 0.6819 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007253/0.7824, allocations: 4.06 MB / 0.6858 GB, free: 10.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.7824, allocations: 4 kB / 0.6858 GB, free: 10.68 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.7841, allocations: 0.998 MB / 0.6868 GB, free: 9.668 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/0.7877, allocations: 375.9 kB / 0.6872 GB, free: 9.301 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.8027, allocations: 7.358 MB / 0.6944 GB, free: 1.906 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004473/0.8072, allocations: 2.809 MB / 0.6971 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004235/0.8115, allocations: 1.727 MB / 0.6988 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007881/0.8123, allocations: 211.4 kB / 0.699 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/0.8123, allocations: 0 / 0.699 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of Templates: time 0.05835/0.8707, allocations: 25.96 MB / 0.7243 GB, free: 3.27 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches