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.001157/0.001157, allocations: 105.9 kB / 17.2 MB, free: 6.273 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.001146/0.001146, allocations: 194 kB / 18.12 MB, free: 5.363 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.402/1.402, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.2358/0.2358, allocations: 44.18 MB / 336.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.77 kB / 407.7 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1244, allocations: 60.83 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.04113/0.1656, allocations: 40.72 MB / 0.4973 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.331/0.4966, allocations: 8.869 MB / 0.506 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01036/0.507, allocations: 168.7 kB / 0.5061 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004633/0.5116, allocations: 1.912 MB / 0.508 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005671/0.5174, allocations: 1.531 MB / 0.5095 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.5194, allocations: 0.5249 MB / 0.51 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.5301, allocations: 5.348 MB / 0.5152 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005509/0.5356, allocations: 2.455 MB / 0.5176 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003274/0.5389, allocations: 1.056 MB / 0.5187 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003784/0.5427, allocations: 1.812 MB / 0.5204 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009081/0.5437, allocations: 175.7 kB / 0.5206 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.5468, allocations: 1.134 MB / 0.5217 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001879/0.5487, allocations: 1.53 MB / 0.5232 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001986/0.5507, allocations: 1.736 MB / 0.5249 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00595/0.5566, allocations: 5.697 MB / 0.5304 GB, free: 3.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.5567, allocations: 0 / 0.5304 GB, free: 3.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5567, allocations: 0 / 0.5304 GB, free: 3.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001339/0.5568, allocations: 0 / 0.5304 GB, free: 3.762 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009807/0.5666, allocations: 3.961 MB / 0.5343 GB, free: 1.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.5667, allocations: 13.64 kB / 0.5343 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01433/0.581, allocations: 2.399 MB / 0.5367 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006166/0.5872, allocations: 2.29 MB / 0.5389 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.5874, allocations: 182.3 kB / 0.5391 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/0.5882, allocations: 243.7 kB / 0.5393 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.6025, allocations: 8.159 MB / 0.5473 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.6026, allocations: 40.2 kB / 0.5473 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003611/0.603, allocations: 117 kB / 0.5474 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002695/0.6057, allocations: 1.7 MB / 0.5491 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.6193, allocations: 6.907 MB / 0.5558 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04387/0.6632, allocations: 32.5 MB / 0.5876 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005365/0.6686, allocations: 2.478 MB / 0.59 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.6702, allocations: 1.12 MB / 0.5911 GB, free: 8.613 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003905/0.6706, allocations: 324.7 kB / 0.5914 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.6707, allocations: 42.52 kB / 0.5914 GB, free: 8.195 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 4.738e-06/0.6707, allocations: 4 kB / 0.5914 GB, free: 8.191 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02587/0.6966, allocations: 9.249 MB / 0.6005 GB, free: 14.83 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.6967, allocations: 196.4 kB / 0.6007 GB, free: 14.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007232/0.704, allocations: 3.812 MB / 0.6044 GB, free: 10.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/0.7043, allocations: 41.7 kB / 0.6044 GB, free: 10.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002364/0.7067, allocations: 2.786 MB / 0.6071 GB, free: 7.969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007451/0.7074, allocations: 496.6 kB / 0.6076 GB, free: 7.488 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002241/0.7097, allocations: 1.138 MB / 0.6087 GB, free: 6.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.7098, allocations: 305.1 kB / 0.609 GB, free: 6.039 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002942/0.7128, allocations: 1.709 MB / 0.6107 GB, free: 4.324 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005541/0.7183, allocations: 5.33 MB / 0.6159 GB, free: 13.17 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009317/0.7277, allocations: 7.589 MB / 0.6233 GB, free: 3.777 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001621/0.7279, allocations: 40 kB / 0.6233 GB, free: 3.738 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01632/0.7442, allocations: 7.205 MB / 0.6304 GB, free: 12.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002279/0.7445, allocations: 61.72 kB / 0.6304 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003274/0.7448, allocations: 128 kB / 0.6306 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/0.7471, allocations: 0.6564 MB / 0.6312 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004519/0.7516, allocations: 1.275 MB / 0.6324 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007319/0.759, allocations: 3.775 MB / 0.6361 GB, free: 6.496 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008369/0.7674, allocations: 306.6 kB / 0.6364 GB, free: 6.199 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001942/0.7694, allocations: 348.4 kB / 0.6368 GB, free: 5.859 MB / 494.1 MB 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.007158/0.7766, allocations: 1.849 MB / 0.6386 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/0.7782, allocations: 312 kB / 0.6389 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006596/0.7848, allocations: 1.841 MB / 0.6407 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.696e-05/0.7849, allocations: 15.94 kB / 0.6407 GB, free: 1.812 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.203e-05/0.785, allocations: 7.984 kB / 0.6407 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.71e-05/0.785, allocations: 11.98 kB / 0.6407 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/0.805, allocations: 5.353 MB / 0.6459 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.167e-05/0.8051, allocations: 8 kB / 0.6459 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.8064, allocations: 163.8 kB / 0.6461 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/0.8087, allocations: 476.2 kB / 0.6465 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00022/0.8089, allocations: 28.02 kB / 0.6466 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005818/0.8147, allocations: 3.217 MB / 0.6497 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.8148, allocations: 0 / 0.6497 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008089/0.8229, allocations: 3.729 MB / 0.6533 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.8243, allocations: 364.9 kB / 0.6537 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009877/0.8254, allocations: 20.06 kB / 0.6537 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.8274, allocations: 55.92 kB / 0.6538 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.8277, allocations: 64.75 kB / 0.6538 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.8279, allocations: 39.14 kB / 0.6539 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006809/0.8347, allocations: 2.362 MB / 0.6562 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.21e-07/0.8347, allocations: 3.938 kB / 0.6562 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008987/0.8437, allocations: 0.8281 MB / 0.657 GB, free: 0.9023 MB / 0.4981 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.0006977/0.8445, allocations: 153.9 kB / 0.6571 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009736/0.8542, allocations: 4.046 MB / 0.6611 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.8543, allocations: 0 / 0.6611 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.8566, allocations: 1.001 MB / 0.6621 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/0.8604, allocations: 356.7 kB / 0.6624 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02549/0.8859, allocations: 9.027 MB / 0.6712 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006104/0.8921, allocations: 2.817 MB / 0.674 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008122/0.9003, allocations: 1.723 MB / 0.6757 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.9015, allocations: 211.4 kB / 0.6759 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/0.9015, allocations: 0 / 0.6759 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of Templates: time 0.0657/0.9672, allocations: 28.32 MB / 0.7035 GB, free: 1.344 MB / 0.545 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