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.001469/0.001469, allocations: 108.8 kB / 17.78 MB, free: 5.281 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.001767/0.001767, allocations: 180.9 kB / 18.71 MB, free: 4.359 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.464/1.464, 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.2288/0.2288, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 55.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.43, allocations: 60.83 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01046/0.4405, allocations: 9.239 MB / 0.5279 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008578/0.4492, allocations: 3.592 MB / 0.5314 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.4514, allocations: 51.06 kB / 0.5315 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00378/0.4552, allocations: 1.922 MB / 0.5334 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005796/0.4611, allocations: 1.652 MB / 0.535 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.4629, allocations: 0.5646 MB / 0.5355 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006337/0.4692, allocations: 3.709 MB / 0.5391 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004533/0.4738, allocations: 2.465 MB / 0.5415 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003044/0.4768, allocations: 1.201 MB / 0.5427 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003914/0.4808, allocations: 1.678 MB / 0.5444 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.4823, allocations: 248 kB / 0.5446 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003395/0.4857, allocations: 1.135 MB / 0.5457 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00271/0.4884, allocations: 1.582 MB / 0.5472 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004206/0.4927, allocations: 1.79 MB / 0.549 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009053/0.5017, allocations: 5.973 MB / 0.5548 GB, free: 7.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.296e-05/0.5018, allocations: 3.984 kB / 0.5548 GB, free: 7.137 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5018, allocations: 3.938 kB / 0.5548 GB, free: 7.133 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001637/0.502, allocations: 4 kB / 0.5548 GB, free: 7.129 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.007716/0.5097, allocations: 4.066 MB / 0.5588 GB, free: 2.988 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.5098, allocations: 12.03 kB / 0.5588 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/0.5249, allocations: 2.424 MB / 0.5612 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005174/0.5301, allocations: 2.335 MB / 0.5635 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.5302, allocations: 184.9 kB / 0.5636 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.5307, allocations: 247.9 kB / 0.5639 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.543, allocations: 8.149 MB / 0.5718 GB, free: 4.945 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-05/0.5431, allocations: 39.64 kB / 0.5719 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003049/0.5434, allocations: 115.9 kB / 0.572 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002689/0.5461, allocations: 1.707 MB / 0.5737 GB, free: 3.086 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.5588, allocations: 6.908 MB / 0.5804 GB, free: 12.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03867/0.5975, allocations: 32.4 MB / 0.612 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004634/0.6022, allocations: 2.477 MB / 0.6145 GB, free: 8.145 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.6036, allocations: 1.124 MB / 0.6156 GB, free: 7.008 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004058/0.604, allocations: 319.3 kB / 0.6159 GB, free: 6.641 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.6041, allocations: 54.48 kB / 0.6159 GB, free: 6.578 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 3.567e-06/0.6041, allocations: 0 / 0.6159 GB, free: 6.578 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.0286/0.6327, allocations: 9.448 MB / 0.6251 GB, free: 13.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.6329, allocations: 192.5 kB / 0.6253 GB, free: 12.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006971/0.6398, allocations: 3.817 MB / 0.6291 GB, free: 8.996 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002138/0.6401, allocations: 41.7 kB / 0.6291 GB, free: 8.949 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00259/0.6427, allocations: 2.903 MB / 0.6319 GB, free: 6.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000729/0.6434, allocations: 0.5119 MB / 0.6324 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002077/0.6455, allocations: 1.151 MB / 0.6336 GB, free: 4.344 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.6456, allocations: 301.1 kB / 0.6338 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002565/0.6482, allocations: 1.709 MB / 0.6355 GB, free: 2.332 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00496/0.6532, allocations: 5.334 MB / 0.6407 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008178/0.6614, allocations: 7.586 MB / 0.6481 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/0.6615, allocations: 39.94 kB / 0.6482 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01369/0.6752, allocations: 7.211 MB / 0.6552 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.6754, allocations: 61.72 kB / 0.6553 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002276/0.6757, allocations: 128 kB / 0.6554 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/0.6774, allocations: 0.6641 MB / 0.656 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003992/0.6814, allocations: 1.267 MB / 0.6573 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005202/0.6867, allocations: 4.079 MB / 0.6613 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004637/0.6913, allocations: 307.7 kB / 0.6615 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/0.6924, allocations: 352 kB / 0.6619 GB, free: 3.543 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.004769/0.6972, allocations: 1.83 MB / 0.6637 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/0.6983, allocations: 322.2 kB / 0.664 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004668/0.703, allocations: 1.845 MB / 0.6658 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.194e-05/0.703, allocations: 12 kB / 0.6658 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/0.703, allocations: 4 kB / 0.6658 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.187e-05/0.7031, allocations: 12.03 kB / 0.6658 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01422/0.7173, allocations: 5.348 MB / 0.671 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.7174, allocations: 4 kB / 0.671 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/0.7182, allocations: 155.8 kB / 0.6712 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.7196, allocations: 488.3 kB / 0.6716 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.7197, allocations: 31.91 kB / 0.6717 GB, free: 9.414 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00426/0.724, allocations: 3.418 MB / 0.675 GB, free: 5.852 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.724, allocations: 8 kB / 0.675 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005824/0.7298, allocations: 3.763 MB / 0.6787 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.7311, allocations: 374.8 kB / 0.6791 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008254/0.7319, allocations: 24.27 kB / 0.6791 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.7334, allocations: 55.92 kB / 0.6791 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.7336, allocations: 64.42 kB / 0.6792 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.489e-05/0.7338, allocations: 39.92 kB / 0.6792 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005324/0.7391, allocations: 2.374 MB / 0.6815 GB, free: 15.13 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/0.7391, allocations: 0 / 0.6815 GB, free: 15.13 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00572/0.7448, allocations: 0.8203 MB / 0.6823 GB, free: 14.31 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.0005103/0.7454, allocations: 146.9 kB / 0.6825 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007197/0.7526, allocations: 4.064 MB / 0.6865 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.7526, allocations: 0 / 0.6865 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.7543, allocations: 0.9985 MB / 0.6874 GB, free: 9.094 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004012/0.7583, allocations: 382.1 kB / 0.6878 GB, free: 8.727 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01659/0.7749, allocations: 7.49 MB / 0.6951 GB, free: 1.191 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00548/0.7805, allocations: 2.798 MB / 0.6978 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004684/0.7852, allocations: 1.719 MB / 0.6995 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000833/0.786, allocations: 215.4 kB / 0.6997 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of SimCode: time 1.753e-06/0.786, allocations: 0 / 0.6997 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of Templates: time 0.05362/0.8397, allocations: 26.26 MB / 0.7254 GB, free: 2.266 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