Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008733/0.0008734, allocations: 99.14 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3359/0.3359, allocations: 45.01 MB / 397 MB, free: 31.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002827, allocations: 8 kB / 470.8 MB, free: 7.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.324, allocations: 63.1 MB / 0.5214 GB, free: 38.48 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02702/0.351, allocations: 37.03 MB / 0.5575 GB, free: 12.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02043/0.3715, allocations: 11.86 MB / 0.5691 GB, free: 2.637 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008504/0.3801, allocations: 166.3 kB / 0.5693 GB, free: 2.613 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.3813, allocations: 357.6 kB / 0.5696 GB, free: 2.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005326/0.3866, allocations: 1.524 MB / 0.5711 GB, free: 1.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.3884, allocations: 0.5337 MB / 0.5716 GB, free: 1.426 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007149/0.3956, allocations: 5.41 MB / 0.5769 GB, free: 13.37 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004971/0.4006, allocations: 3.898 MB / 0.5807 GB, free: 9.258 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.4024, allocations: 1.023 MB / 0.5817 GB, free: 8.23 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002038/0.4044, allocations: 1.619 MB / 0.5833 GB, free: 6.605 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003255/0.4048, allocations: 112 kB / 0.5834 GB, free: 6.496 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.4068, allocations: 1.037 MB / 0.5844 GB, free: 5.457 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001327/0.4081, allocations: 1.433 MB / 0.5858 GB, free: 4.02 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.4097, allocations: 1.647 MB / 0.5874 GB, free: 2.355 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005159/0.4148, allocations: 5.532 MB / 0.5928 GB, free: 12.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4148, allocations: 0 / 0.5928 GB, free: 12.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4149, allocations: 0 / 0.5928 GB, free: 12.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.239e-05/0.4149, allocations: 0 / 0.5928 GB, free: 12.8 MB / 410.7 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.005425/0.4204, allocations: 3.283 MB / 0.596 GB, free: 9.457 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.4204, allocations: 12.03 kB / 0.596 GB, free: 9.445 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01374/0.4342, allocations: 2.469 MB / 0.5985 GB, free: 6.969 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004761/0.4389, allocations: 2.252 MB / 0.6007 GB, free: 4.664 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.4391, allocations: 185 kB / 0.6008 GB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/0.4396, allocations: 239.8 kB / 0.6011 GB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/0.4523, allocations: 8.149 MB / 0.609 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/0.4525, allocations: 35.75 kB / 0.6091 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000362/0.4528, allocations: 123.9 kB / 0.6092 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002986/0.4558, allocations: 1.707 MB / 0.6108 GB, free: 9.594 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.4678, allocations: 6.88 MB / 0.6176 GB, free: 2.703 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03578/0.5036, allocations: 32.51 MB / 0.6493 GB, free: 1.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004586/0.5083, allocations: 2.477 MB / 0.6517 GB, free: 14.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.5098, allocations: 1.12 MB / 0.6528 GB, free: 13.42 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003811/0.5102, allocations: 319.2 kB / 0.6531 GB, free: 13.05 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.5102, allocations: 54.44 kB / 0.6532 GB, free: 12.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=104): time 4.228e-06/0.5102, allocations: 0 / 0.6532 GB, free: 12.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=118): time 0.02122/0.5314, allocations: 9.229 MB / 0.6622 GB, free: 3.648 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.5316, allocations: 196.5 kB / 0.6624 GB, free: 3.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/0.5367, allocations: 3.781 MB / 0.6661 GB, free: 15.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.5369, allocations: 37.7 kB / 0.6661 GB, free: 15.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.5388, allocations: 2.785 MB / 0.6688 GB, free: 12.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/0.5393, allocations: 0.4942 MB / 0.6693 GB, free: 12.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.5395, allocations: 112 kB / 0.6694 GB, free: 12.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003232/0.5399, allocations: 0.5376 MB / 0.6699 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002374/0.5422, allocations: 1.682 MB / 0.6716 GB, free: 9.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004608/0.5469, allocations: 5.311 MB / 0.6768 GB, free: 2.793 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2741/0.821, allocations: 7.571 MB / 0.6842 GB, free: 123.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.549e-05/0.8211, allocations: 40.53 kB / 0.6842 GB, free: 123.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01122/0.8323, allocations: 7.147 MB / 0.6912 GB, free: 121.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.045e-05/0.8324, allocations: 65.06 kB / 0.6912 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.8325, allocations: 126.4 kB / 0.6914 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.8339, allocations: 0.6534 MB / 0.692 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/0.8371, allocations: 1.267 MB / 0.6932 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.8407, allocations: 3.796 MB / 0.6969 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004621/0.8454, allocations: 300.3 kB / 0.6972 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000922/0.8463, allocations: 350.7 kB / 0.6976 GB, free: 118.5 MB / 490.7 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003426/0.8497, allocations: 1.84 MB / 0.6994 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005634/0.8503, allocations: 306.1 kB / 0.6997 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.8537, allocations: 1.841 MB / 0.7015 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.8538, allocations: 17.75 kB / 0.7015 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.8538, allocations: 2.75 kB / 0.7015 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.8538, allocations: 7.469 kB / 0.7015 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008644/0.8624, allocations: 5.347 MB / 0.7067 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.8625, allocations: 1.797 kB / 0.7067 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007519/0.8632, allocations: 158.5 kB / 0.7069 GB, free: 115 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/0.8646, allocations: 494.4 kB / 0.7073 GB, free: 114.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.935e-05/0.8647, allocations: 24.66 kB / 0.7074 GB, free: 114.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.868, allocations: 3.214 MB / 0.7105 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.8681, allocations: 1.125 kB / 0.7105 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.8728, allocations: 3.727 MB / 0.7141 GB, free: 111.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006176/0.8734, allocations: 370.8 kB / 0.7145 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.8737, allocations: 27.14 kB / 0.7145 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008887/0.8746, allocations: 56.14 kB / 0.7146 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.8747, allocations: 61.5 kB / 0.7146 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.856e-05/0.8748, allocations: 30.5 kB / 0.7147 GB, free: 111.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00265/0.8775, allocations: 2.341 MB / 0.7169 GB, free: 110.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.8775, allocations: 0 / 0.7169 GB, free: 110.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003313/0.8808, allocations: 0.829 MB / 0.7177 GB, free: 110.3 MB / 490.7 MB 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.0002877/0.8811, allocations: 159.5 kB / 0.7179 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004924/0.886, allocations: 4.008 MB / 0.7218 GB, free: 108.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.8861, allocations: 0 / 0.7218 GB, free: 108.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.8871, allocations: 0.9984 MB / 0.7228 GB, free: 108.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.8892, allocations: 359.8 kB / 0.7231 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.9002, allocations: 9.082 MB / 0.732 GB, free: 99.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002242/0.9025, allocations: 2.8 MB / 0.7347 GB, free: 96.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003613/0.9062, allocations: 1.734 MB / 0.7364 GB, free: 94.89 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004791/0.9067, allocations: 207.4 kB / 0.7366 GB, free: 94.69 MB / 490.7 MB Notification: Performance of SimCode: time 7.21e-07/0.9067, allocations: 0 / 0.7366 GB, free: 94.69 MB / 490.7 MB Notification: Performance of Templates: time 0.04179/0.9485, allocations: 27.94 MB / 0.7639 GB, free: 66.91 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches