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.001041/0.001041, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001079/0.001079, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.309/1.309, allocations: 222.9 MB / 242.2 MB, free: 15.2 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.2028/0.2028, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.12 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1204, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01286/0.1333, allocations: 12.05 MB / 481.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008212/0.1415, allocations: 4.035 MB / 485.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1436, allocations: 75.88 kB / 485.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003448/0.1471, allocations: 1.678 MB / 487.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004033/0.1512, allocations: 1.541 MB / 488.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.1537, allocations: 1.184 MB / 489.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005211/0.1589, allocations: 3.523 MB / 493.3 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003722/0.1626, allocations: 2.477 MB / 495.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.1648, allocations: 1.183 MB / 497 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/0.1672, allocations: 1.58 MB / 498.6 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009217/0.1682, allocations: 244 kB / 498.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.1701, allocations: 0.7139 MB / 499.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001819/0.1719, allocations: 1.597 MB / 0.4894 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002916/0.1748, allocations: 1.914 MB / 0.4912 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006909/0.1818, allocations: 5.996 MB / 0.4971 GB, free: 6.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1818, allocations: 0 / 0.4971 GB, free: 6.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1818, allocations: 0 / 0.4971 GB, free: 6.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002806/0.1821, allocations: 4 kB / 0.4971 GB, free: 6.395 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.01097/0.1931, allocations: 4.067 MB / 0.5011 GB, free: 2.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1931, allocations: 8.031 kB / 0.5011 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2658/0.459, allocations: 2.989 MB / 0.504 GB, free: 47.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004646/0.4637, allocations: 1.825 MB / 0.5058 GB, free: 46.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.4639, allocations: 191.9 kB / 0.506 GB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007483/0.4647, allocations: 251 kB / 0.5062 GB, free: 46.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0168/0.4815, allocations: 10.23 MB / 0.5162 GB, free: 41.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/0.4816, allocations: 33.28 kB / 0.5162 GB, free: 41.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003787/0.482, allocations: 131.2 kB / 0.5164 GB, free: 41.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003709/0.4857, allocations: 2.37 MB / 0.5187 GB, free: 40.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.5002, allocations: 9.083 MB / 0.5275 GB, free: 35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04133/0.5416, allocations: 38.15 MB / 0.5648 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006346/0.548, allocations: 3.387 MB / 0.5681 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001995/0.55, allocations: 1.228 MB / 0.5693 GB, free: 6.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009521/0.5595, allocations: 5.195 MB / 0.5744 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.5596, allocations: 43.12 kB / 0.5744 GB, free: 1.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 5.7e-06/0.5597, allocations: 0 / 0.5744 GB, free: 1.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.007498/0.5672, allocations: 3.324 MB / 0.5777 GB, free: 14.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.94e-05/0.5673, allocations: 174.8 kB / 0.5778 GB, free: 13.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007662/0.575, allocations: 3.858 MB / 0.5816 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.5752, allocations: 45.61 kB / 0.5816 GB, free: 10.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002662/0.5779, allocations: 3.227 MB / 0.5848 GB, free: 6.734 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000886/0.5788, allocations: 0.6098 MB / 0.5854 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002743/0.5815, allocations: 1.313 MB / 0.5867 GB, free: 4.793 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5816, allocations: 305.1 kB / 0.587 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003152/0.5848, allocations: 1.961 MB / 0.5889 GB, free: 2.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00661/0.5914, allocations: 6.16 MB / 0.5949 GB, free: 10.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.6024, allocations: 8.855 MB / 0.6035 GB, free: 15.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001843/0.6026, allocations: 44 kB / 0.6036 GB, free: 15.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01666/0.6193, allocations: 7.754 MB / 0.6112 GB, free: 7.527 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.6195, allocations: 68 kB / 0.6112 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003238/0.6199, allocations: 148 kB / 0.6114 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.6202, allocations: 196 kB / 0.6115 GB, free: 7.125 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/0.6251, allocations: 1.466 MB / 0.613 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002939/0.6254, allocations: 290.9 kB / 0.6133 GB, free: 5.371 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005271/0.6307, allocations: 0.9281 MB / 0.6142 GB, free: 4.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/0.6319, allocations: 404.8 kB / 0.6145 GB, free: 4.039 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.004775/0.6367, allocations: 2.23 MB / 0.6167 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008681/0.6376, allocations: 311.8 kB / 0.617 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.6388, allocations: 411.4 kB / 0.6174 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.638e-05/0.6389, allocations: 35.98 kB / 0.6174 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.6389, allocations: 0 / 0.6174 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.639, allocations: 7.984 kB / 0.6175 GB, free: 1.043 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.6513, allocations: 5.535 MB / 0.6229 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/0.6513, allocations: 8.25 kB / 0.6229 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6524, allocations: 207.7 kB / 0.6231 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.222e-05/0.6524, allocations: 16 kB / 0.6231 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.6526, allocations: 27.98 kB / 0.6231 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-05/0.6526, allocations: 11.94 kB / 0.6231 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.6526, allocations: 11.94 kB / 0.6231 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/0.6561, allocations: 2.532 MB / 0.6256 GB, free: 8.488 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008427/0.657, allocations: 376.6 kB / 0.626 GB, free: 8.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006241/0.6576, allocations: 27.98 kB / 0.626 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.6589, allocations: 59.92 kB / 0.626 GB, free: 8.012 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.6591, allocations: 88.47 kB / 0.6261 GB, free: 7.926 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.546e-05/0.6592, allocations: 43.98 kB / 0.6262 GB, free: 7.883 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004405/0.6637, allocations: 2.362 MB / 0.6285 GB, free: 5.535 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6637, allocations: 0 / 0.6285 GB, free: 5.535 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005359/0.669, allocations: 1.108 MB / 0.6296 GB, free: 4.426 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.0004884/0.6695, allocations: 156.3 kB / 0.6297 GB, free: 4.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008714/0.6783, allocations: 5.108 MB / 0.6347 GB, free: 15.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.6783, allocations: 4 kB / 0.6347 GB, free: 15.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.6796, allocations: 0.9544 MB / 0.6356 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/0.6827, allocations: 360.4 kB / 0.636 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.6983, allocations: 8.482 MB / 0.6443 GB, free: 5.316 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005051/0.7034, allocations: 3.218 MB / 0.6474 GB, free: 2.078 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006287/0.7097, allocations: 2.232 MB / 0.6496 GB, free: 15.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009332/0.7106, allocations: 223.4 kB / 0.6498 GB, free: 15.61 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7107, allocations: 0 / 0.6498 GB, free: 15.61 MB / 494.1 MB Notification: Performance of Templates: time 0.0557/0.7664, allocations: 25.06 MB / 0.6743 GB, free: 6.617 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins/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