Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 178.2 kB / 16.08 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.6 MB / 222.4 MB, free: 13.66 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008275/0.0008274, allocations: 94.22 kB / 270.8 MB, free: 13.19 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2085/0.2085, allocations: 43.69 MB / 362.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003981, allocations: 8 kB / 432.3 MB, free: 19.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 58.85 MB / 491.2 MB, free: 8.133 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03616/0.14, allocations: 37.7 MB / 0.5165 GB, free: 2.32 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2413/0.3814, allocations: 11.57 MB / 0.5278 GB, free: 9.676 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008689/0.3901, allocations: 171.1 kB / 0.5279 GB, free: 9.676 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.3921, allocations: 370.2 kB / 0.5283 GB, free: 9.676 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005351/0.3974, allocations: 1.633 MB / 0.5299 GB, free: 9.582 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.3991, allocations: 0.5315 MB / 0.5304 GB, free: 9.559 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009215/0.4083, allocations: 5.398 MB / 0.5357 GB, free: 9.145 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00792/0.4163, allocations: 3.978 MB / 0.5396 GB, free: 7.746 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003103/0.4194, allocations: 1.099 MB / 0.5406 GB, free: 7.441 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.4223, allocations: 1.761 MB / 0.5423 GB, free: 6.754 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005351/0.4229, allocations: 128.8 kB / 0.5425 GB, free: 6.754 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.4252, allocations: 1.045 MB / 0.5435 GB, free: 6.465 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.4269, allocations: 1.536 MB / 0.545 GB, free: 5.895 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002411/0.4294, allocations: 1.78 MB / 0.5467 GB, free: 5.051 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00669/0.4361, allocations: 5.959 MB / 0.5525 GB, free: 1.789 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.4361, allocations: 0 / 0.5525 GB, free: 1.789 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4361, allocations: 0 / 0.5525 GB, free: 1.789 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001694/0.4363, allocations: 0 / 0.5525 GB, free: 1.789 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.007342/0.4436, allocations: 3.458 MB / 0.5559 GB, free: 15.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.4437, allocations: 11.22 kB / 0.5559 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/0.4583, allocations: 2.509 MB / 0.5584 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006229/0.4646, allocations: 2.414 MB / 0.5607 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.4648, allocations: 193.8 kB / 0.5609 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007999/0.4656, allocations: 254.6 kB / 0.5612 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.4799, allocations: 8.754 MB / 0.5697 GB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.4801, allocations: 35.69 kB / 0.5698 GB, free: 5.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003593/0.4805, allocations: 131.4 kB / 0.5699 GB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002954/0.4834, allocations: 1.838 MB / 0.5717 GB, free: 3.801 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.4981, allocations: 7.445 MB / 0.5789 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04983/0.548, allocations: 34.33 MB / 0.6125 GB, free: 9.523 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005124/0.5531, allocations: 2.577 MB / 0.615 GB, free: 6.797 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.5549, allocations: 1.188 MB / 0.6162 GB, free: 5.598 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004238/0.5554, allocations: 325 kB / 0.6165 GB, free: 5.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.5554, allocations: 47.12 kB / 0.6165 GB, free: 5.176 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.729e-06/0.5554, allocations: 0 / 0.6165 GB, free: 5.176 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02913/0.5846, allocations: 9.787 MB / 0.6261 GB, free: 11.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.5848, allocations: 196.6 kB / 0.6263 GB, free: 11.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009313/0.5941, allocations: 3.932 MB / 0.6301 GB, free: 7.121 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00039/0.5946, allocations: 41.7 kB / 0.6301 GB, free: 7.074 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003642/0.5982, allocations: 2.945 MB / 0.633 GB, free: 4.137 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/0.5994, allocations: 0.5457 MB / 0.6335 GB, free: 3.598 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006617/0.6001, allocations: 119.9 kB / 0.6337 GB, free: 3.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006219/0.6007, allocations: 0.554 MB / 0.6342 GB, free: 2.918 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003683/0.6044, allocations: 1.784 MB / 0.6359 GB, free: 1.129 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007024/0.6115, allocations: 5.609 MB / 0.6414 GB, free: 9.598 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.623, allocations: 8.021 MB / 0.6492 GB, free: 15.67 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/0.6232, allocations: 44 kB / 0.6493 GB, free: 15.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01791/0.6411, allocations: 7.531 MB / 0.6566 GB, free: 8.086 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001959/0.6414, allocations: 64 kB / 0.6567 GB, free: 8.023 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002653/0.6417, allocations: 140.8 kB / 0.6568 GB, free: 7.887 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002127/0.6438, allocations: 0.672 MB / 0.6575 GB, free: 7.211 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/0.6486, allocations: 1.353 MB / 0.6588 GB, free: 5.855 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005835/0.6544, allocations: 3.809 MB / 0.6625 GB, free: 1.918 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00555/0.66, allocations: 307.5 kB / 0.6628 GB, free: 1.617 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/0.6616, allocations: 376 kB / 0.6632 GB, free: 1.25 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.00556/0.6672, allocations: 1.95 MB / 0.6651 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009086/0.6682, allocations: 323.7 kB / 0.6654 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004836/0.673, allocations: 2.069 MB / 0.6674 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.603e-05/0.6731, allocations: 20 kB / 0.6674 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/0.6731, allocations: 4 kB / 0.6674 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.6731, allocations: 7.969 kB / 0.6675 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.6878, allocations: 5.807 MB / 0.6731 GB, free: 6.984 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-05/0.6879, allocations: 4 kB / 0.6731 GB, free: 6.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.6889, allocations: 187.9 kB / 0.6733 GB, free: 6.797 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.6904, allocations: 488.2 kB / 0.6738 GB, free: 6.316 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.6906, allocations: 24 kB / 0.6738 GB, free: 6.293 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004236/0.6948, allocations: 3.227 MB / 0.6769 GB, free: 2.938 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6949, allocations: 0 / 0.6769 GB, free: 2.938 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006967/0.7018, allocations: 3.977 MB / 0.6808 GB, free: 14.92 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/0.7039, allocations: 0.5475 MB / 0.6814 GB, free: 14.35 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009759/0.7049, allocations: 24.34 kB / 0.6814 GB, free: 14.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.7066, allocations: 70.42 kB / 0.6815 GB, free: 14.26 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.7069, allocations: 76.28 kB / 0.6815 GB, free: 14.18 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.707, allocations: 43.92 kB / 0.6816 GB, free: 14.14 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005699/0.7127, allocations: 2.441 MB / 0.684 GB, free: 11.72 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.01e-07/0.7128, allocations: 0 / 0.684 GB, free: 11.72 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006275/0.719, allocations: 0.8866 MB / 0.6848 GB, free: 10.83 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.00064/0.7197, allocations: 154.9 kB / 0.685 GB, free: 10.67 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008721/0.7284, allocations: 4.268 MB / 0.6891 GB, free: 6.426 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.7285, allocations: 4.062 kB / 0.6891 GB, free: 6.422 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.7304, allocations: 1.068 MB / 0.6902 GB, free: 5.344 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/0.7348, allocations: 361.5 kB / 0.6905 GB, free: 4.988 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/0.7555, allocations: 9.73 MB / 0.7 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005461/0.7611, allocations: 2.956 MB / 0.7029 GB, free: 8.219 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005685/0.7668, allocations: 1.81 MB / 0.7047 GB, free: 6.398 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.7678, allocations: 223.4 kB / 0.7049 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/0.7679, allocations: 7.938 kB / 0.7049 GB, free: 6.172 MB / 0.5105 GB Notification: Performance of Templates: time 0.2857/1.054, allocations: 29.39 MB / 0.7336 GB, free: 173.8 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches