Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001956/0.001956, allocations: 187 kB / 19.34 MB, free: 3.641 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.575/1.575, allocations: 222.9 MB / 243 MB, free: 15.1 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.2218/0.2218, allocations: 44.19 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 60.69 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1519, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01327/0.1652, allocations: 12.04 MB / 482.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008646/0.1739, allocations: 4.039 MB / 486.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002652/0.1766, allocations: 79.81 kB / 486.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003136/0.1798, allocations: 1.666 MB / 488.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003704/0.1835, allocations: 1.549 MB / 490.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.1858, allocations: 1.192 MB / 491.3 MB, free: 9.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004486/0.1903, allocations: 3.52 MB / 494.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002777/0.1931, allocations: 2.489 MB / 497.3 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001866/0.195, allocations: 1.176 MB / 498.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002093/0.1971, allocations: 1.592 MB / 0.4883 GB, free: 196 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005623/0.1976, allocations: 240 kB / 0.4886 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.199, allocations: 0.7138 MB / 0.4893 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.2003, allocations: 1.593 MB / 0.4908 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001757/0.2021, allocations: 1.921 MB / 0.4927 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005782/0.2079, allocations: 6.277 MB / 0.4988 GB, free: 5.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2079, allocations: 0 / 0.4988 GB, free: 5.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2079, allocations: 0 / 0.4988 GB, free: 5.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001116/0.208, allocations: 0 / 0.4988 GB, free: 5.41 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.006521/0.2146, allocations: 4.074 MB / 0.5028 GB, free: 1.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2146, allocations: 12.03 kB / 0.5028 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2554/0.47, allocations: 2.992 MB / 0.5057 GB, free: 47.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005706/0.4758, allocations: 1.839 MB / 0.5075 GB, free: 46.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/0.476, allocations: 196.3 kB / 0.5077 GB, free: 46.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.4771, allocations: 250.5 kB / 0.5079 GB, free: 46.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01869/0.4958, allocations: 10.23 MB / 0.5179 GB, free: 41.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.543e-05/0.4959, allocations: 30.86 kB / 0.518 GB, free: 41.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004202/0.4963, allocations: 132.4 kB / 0.5181 GB, free: 41.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003461/0.4998, allocations: 2.371 MB / 0.5204 GB, free: 41.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.5145, allocations: 9.085 MB / 0.5293 GB, free: 33.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/0.5597, allocations: 37.97 MB / 0.5664 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005522/0.5653, allocations: 3.384 MB / 0.5697 GB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.5672, allocations: 1.234 MB / 0.5709 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009276/0.5765, allocations: 5.176 MB / 0.5759 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.5766, allocations: 55 kB / 0.576 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 9.137e-06/0.5766, allocations: 0 / 0.576 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.007368/0.584, allocations: 3.326 MB / 0.5792 GB, free: 13.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5841, allocations: 170.7 kB / 0.5794 GB, free: 12.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005658/0.5898, allocations: 3.86 MB / 0.5832 GB, free: 9.117 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.59, allocations: 45.69 kB / 0.5832 GB, free: 9.066 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002459/0.5924, allocations: 3.223 MB / 0.5864 GB, free: 5.793 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007309/0.5932, allocations: 0.6059 MB / 0.5869 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001729/0.5949, allocations: 1.317 MB / 0.5882 GB, free: 3.852 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.595, allocations: 309.1 kB / 0.5885 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002949/0.598, allocations: 1.965 MB / 0.5904 GB, free: 1.578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006014/0.604, allocations: 6.152 MB / 0.5965 GB, free: 9.328 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.6143, allocations: 8.847 MB / 0.6051 GB, free: 14.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/0.6145, allocations: 44 kB / 0.6051 GB, free: 14.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01354/0.628, allocations: 7.758 MB / 0.6127 GB, free: 6.582 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.239e-05/0.6281, allocations: 68 kB / 0.6128 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001431/0.6283, allocations: 148 kB / 0.6129 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.6285, allocations: 196.5 kB / 0.6131 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003939/0.6324, allocations: 1.47 MB / 0.6145 GB, free: 4.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001992/0.6326, allocations: 286.9 kB / 0.6148 GB, free: 4.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/0.6366, allocations: 0.9238 MB / 0.6157 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004784/0.6371, allocations: 400 kB / 0.6161 GB, free: 3.105 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (797): * Single equations (assignments): 789 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002983/0.6401, allocations: 2.234 MB / 0.6183 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005462/0.6406, allocations: 311.8 kB / 0.6186 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006992/0.6413, allocations: 415.4 kB / 0.619 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.319e-05/0.6414, allocations: 39.98 kB / 0.619 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.6414, allocations: 3.984 kB / 0.619 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.6415, allocations: 3.984 kB / 0.619 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008701/0.6502, allocations: 5.527 MB / 0.6244 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.6502, allocations: 7.938 kB / 0.6244 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008711/0.6511, allocations: 215.7 kB / 0.6246 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.32e-05/0.6511, allocations: 8 kB / 0.6246 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.702e-05/0.6512, allocations: 28.31 kB / 0.6247 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.237e-05/0.6512, allocations: 11.94 kB / 0.6247 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.6512, allocations: 12 kB / 0.6247 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/0.654, allocations: 2.535 MB / 0.6272 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006837/0.6547, allocations: 376.6 kB / 0.6275 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.655, allocations: 31.98 kB / 0.6275 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009082/0.6559, allocations: 59.92 kB / 0.6276 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.656, allocations: 84.28 kB / 0.6277 GB, free: 6.984 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6562, allocations: 44 kB / 0.6277 GB, free: 6.941 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003316/0.6595, allocations: 2.358 MB / 0.63 GB, free: 4.598 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6595, allocations: 0 / 0.63 GB, free: 4.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005088/0.6646, allocations: 1.104 MB / 0.6311 GB, free: 3.492 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004089/0.665, allocations: 168.3 kB / 0.6313 GB, free: 3.324 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007054/0.6721, allocations: 4.455 MB / 0.6356 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.6721, allocations: 0 / 0.6356 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.6733, allocations: 0.9539 MB / 0.6366 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.6755, allocations: 350.7 kB / 0.6369 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/0.6931, allocations: 8.375 MB / 0.6451 GB, free: 5.141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005096/0.6983, allocations: 3.222 MB / 0.6482 GB, free: 1.895 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005835/0.7041, allocations: 2.238 MB / 0.6504 GB, free: 15.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.7052, allocations: 227.3 kB / 0.6506 GB, free: 15.42 MB / 494.1 MB Notification: Performance of SimCode: time 1.432e-06/0.7052, allocations: 0 / 0.6506 GB, free: 15.42 MB / 494.1 MB Notification: Performance of Templates: time 0.04842/0.7536, allocations: 19.9 MB / 0.6701 GB, free: 11.6 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches