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.001514/0.001514, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001745/0.001745, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.531/1.531, allocations: 222.9 MB / 243 MB, free: 15.08 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.2101/0.2101, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 58.25 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1309, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01096/0.142, allocations: 9.234 MB / 479.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007631/0.1496, allocations: 3.594 MB / 483.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1509, allocations: 47.88 kB / 483.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003552/0.1545, allocations: 1.935 MB / 485.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004085/0.1586, allocations: 1.646 MB / 487.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.1599, allocations: 0.5653 MB / 487.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004897/0.1649, allocations: 3.708 MB / 491.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002671/0.1676, allocations: 2.464 MB / 493.9 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.1692, allocations: 1.203 MB / 495.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.1712, allocations: 1.667 MB / 496.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004421/0.1716, allocations: 248 kB / 497 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.1734, allocations: 1.143 MB / 498.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001288/0.1747, allocations: 1.578 MB / 499.7 MB, free: 484 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.1763, allocations: 1.794 MB / 0.4898 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005509/0.1818, allocations: 5.948 MB / 0.4956 GB, free: 8.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1818, allocations: 0 / 0.4956 GB, free: 8.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1819, allocations: 0 / 0.4956 GB, free: 8.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001167/0.182, allocations: 0 / 0.4956 GB, free: 8.699 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.007415/0.1894, allocations: 3.971 MB / 0.4995 GB, free: 4.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1895, allocations: 8.031 kB / 0.4995 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.2041, allocations: 2.394 MB / 0.5018 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2554/0.4595, allocations: 2.313 MB / 0.5041 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.4598, allocations: 186 kB / 0.5042 GB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009656/0.4608, allocations: 249.8 kB / 0.5045 GB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.4743, allocations: 8.155 MB / 0.5124 GB, free: 42.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/0.4744, allocations: 38.78 kB / 0.5125 GB, free: 42.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003309/0.4747, allocations: 119.6 kB / 0.5126 GB, free: 42.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003121/0.4779, allocations: 1.701 MB / 0.5143 GB, free: 41.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01476/0.4926, allocations: 6.899 MB / 0.521 GB, free: 39.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03065/0.5234, allocations: 32.36 MB / 0.5526 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003619/0.527, allocations: 2.49 MB / 0.555 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.528, allocations: 1.12 MB / 0.5561 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002609/0.5283, allocations: 315.2 kB / 0.5564 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.5284, allocations: 54.44 kB / 0.5565 GB, free: 4.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.056e-06/0.5284, allocations: 0 / 0.5565 GB, free: 4.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.02039/0.5488, allocations: 9.243 MB / 0.5655 GB, free: 11.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.5489, allocations: 192.5 kB / 0.5657 GB, free: 11.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00591/0.5548, allocations: 3.816 MB / 0.5694 GB, free: 7.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003901/0.5552, allocations: 41.7 kB / 0.5694 GB, free: 7.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002712/0.558, allocations: 2.777 MB / 0.5722 GB, free: 4.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006975/0.5587, allocations: 0.4942 MB / 0.5726 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/0.5602, allocations: 1.138 MB / 0.5738 GB, free: 3.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5603, allocations: 305.1 kB / 0.574 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.5629, allocations: 1.709 MB / 0.5757 GB, free: 1.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004858/0.5677, allocations: 5.326 MB / 0.5809 GB, free: 9.902 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008095/0.5758, allocations: 7.602 MB / 0.5883 GB, free: 0.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.193e-05/0.576, allocations: 36 kB / 0.5884 GB, free: 476 kB / 414.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01204/0.588, allocations: 7.203 MB / 0.5954 GB, free: 9.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.482e-05/0.5881, allocations: 62.34 kB / 0.5955 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/0.5882, allocations: 128.9 kB / 0.5956 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.5898, allocations: 0.6526 MB / 0.5962 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00366/0.5934, allocations: 1.269 MB / 0.5975 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005044/0.5985, allocations: 4.085 MB / 0.6015 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005319/0.6038, allocations: 299.6 kB / 0.6017 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/0.605, allocations: 348 kB / 0.6021 GB, free: 2.285 MB / 430.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.003403/0.6084, allocations: 1.834 MB / 0.6039 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006643/0.6091, allocations: 311.9 kB / 0.6042 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/0.6124, allocations: 1.837 MB / 0.606 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/0.6124, allocations: 16 kB / 0.606 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.6124, allocations: 4 kB / 0.606 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.6125, allocations: 11.92 kB / 0.606 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009713/0.6222, allocations: 5.336 MB / 0.6112 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/0.6223, allocations: 4.109 kB / 0.6112 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000791/0.6231, allocations: 163.7 kB / 0.6114 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.6244, allocations: 488.6 kB / 0.6118 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.386e-05/0.6245, allocations: 20 kB / 0.6118 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.6285, allocations: 3.431 MB / 0.6152 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.6285, allocations: 6.797 kB / 0.6152 GB, free: 4.609 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005421/0.6339, allocations: 3.736 MB / 0.6188 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.6351, allocations: 368.8 kB / 0.6192 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/0.6355, allocations: 20 kB / 0.6192 GB, free: 456 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.6366, allocations: 55.92 kB / 0.6193 GB, free: 400 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.6368, allocations: 64.47 kB / 0.6193 GB, free: 336 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.73e-05/0.6369, allocations: 32.06 kB / 0.6194 GB, free: 304 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003717/0.6407, allocations: 2.366 MB / 0.6217 GB, free: 13.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6407, allocations: 0 / 0.6217 GB, free: 13.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004764/0.6454, allocations: 0.8307 MB / 0.6225 GB, free: 13.12 MB / 462.1 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.0004016/0.6459, allocations: 140.4 kB / 0.6226 GB, free: 12.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006819/0.6527, allocations: 4.058 MB / 0.6266 GB, free: 8.934 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.6527, allocations: 1.188 kB / 0.6266 GB, free: 8.934 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.6542, allocations: 1.005 MB / 0.6276 GB, free: 7.914 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.6572, allocations: 380.7 kB / 0.6279 GB, free: 7.551 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.6713, allocations: 7.349 MB / 0.6351 GB, free: 168 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003141/0.6745, allocations: 2.805 MB / 0.6378 GB, free: 13.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003944/0.6785, allocations: 1.714 MB / 0.6395 GB, free: 11.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.6791, allocations: 215.4 kB / 0.6397 GB, free: 11.41 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/0.6791, allocations: 0 / 0.6397 GB, free: 11.41 MB / 478.1 MB Notification: Performance of Templates: time 0.05302/0.7321, allocations: 24.58 MB / 0.6637 GB, free: 2.922 MB / 494.1 MB 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/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