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.001125/0.001125, allocations: 108.3 kB / 17.21 MB, free: 6.289 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.001189/0.001189, allocations: 194 kB / 18.12 MB, free: 5.383 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.349/1.349, allocations: 222.9 MB / 241.8 MB, free: 13.64 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.2107/0.2107, allocations: 44.18 MB / 336.1 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.12 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1402, allocations: 60.83 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02598/0.1662, allocations: 25.94 MB / 494.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.1831, allocations: 6.338 MB / 0.4891 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005645/0.1888, allocations: 115.8 kB / 0.4892 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003881/0.1927, allocations: 1.636 MB / 0.4908 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004196/0.197, allocations: 1.48 MB / 0.4922 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002433/0.1994, allocations: 1.177 MB / 0.4934 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006069/0.2055, allocations: 4.991 MB / 0.4982 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003692/0.2092, allocations: 2.486 MB / 0.5007 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002044/0.2113, allocations: 1.031 MB / 0.5017 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.291/0.5023, allocations: 1.704 MB / 0.5033 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.5038, allocations: 171.7 kB / 0.5035 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002454/0.5062, allocations: 0.687 MB / 0.5042 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002776/0.509, allocations: 1.548 MB / 0.5057 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003716/0.5128, allocations: 1.873 MB / 0.5075 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009069/0.5219, allocations: 5.936 MB / 0.5133 GB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.5219, allocations: 0 / 0.5133 GB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.5219, allocations: 0.9375 kB / 0.5133 GB, free: 11.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002582/0.5222, allocations: 0 / 0.5133 GB, free: 11.97 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.01102/0.5332, allocations: 4.072 MB / 0.5173 GB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.5333, allocations: 10.34 kB / 0.5173 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009753/0.5431, allocations: 2.994 MB / 0.5202 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00444/0.5475, allocations: 1.821 MB / 0.522 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.5477, allocations: 193 kB / 0.5222 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006943/0.5484, allocations: 251.5 kB / 0.5224 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01632/0.5648, allocations: 10.24 MB / 0.5324 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.5649, allocations: 33.84 kB / 0.5325 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009223/0.5658, allocations: 128.5 kB / 0.5326 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.5691, allocations: 2.37 MB / 0.5349 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.585, allocations: 9.085 MB / 0.5438 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05807/0.6432, allocations: 38.14 MB / 0.581 GB, free: 8.066 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006255/0.6495, allocations: 3.386 MB / 0.5843 GB, free: 4.426 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/0.6514, allocations: 1.235 MB / 0.5855 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009683/0.6611, allocations: 5.186 MB / 0.5906 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.6611, allocations: 47.12 kB / 0.5906 GB, free: 13.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.658e-06/0.6612, allocations: 2.625 kB / 0.5906 GB, free: 13.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.007396/0.6686, allocations: 3.324 MB / 0.5939 GB, free: 10.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.474e-05/0.6687, allocations: 174.1 kB / 0.594 GB, free: 10.31 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007206/0.6759, allocations: 3.865 MB / 0.5978 GB, free: 6.453 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002431/0.6762, allocations: 41.7 kB / 0.5979 GB, free: 6.406 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002963/0.6791, allocations: 3.224 MB / 0.601 GB, free: 3.188 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009075/0.68, allocations: 0.6064 MB / 0.6016 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001884/0.6819, allocations: 1.318 MB / 0.6029 GB, free: 1.262 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6821, allocations: 301.1 kB / 0.6032 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003077/0.6851, allocations: 1.965 MB / 0.6051 GB, free: 15 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006995/0.6922, allocations: 6.158 MB / 0.6111 GB, free: 6.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.7049, allocations: 8.848 MB / 0.6198 GB, free: 12.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001684/0.7051, allocations: 44 kB / 0.6198 GB, free: 12.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01647/0.7216, allocations: 7.757 MB / 0.6274 GB, free: 5.328 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-05/0.7217, allocations: 68 kB / 0.6274 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/0.7219, allocations: 150.4 kB / 0.6276 GB, free: 5.117 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.7221, allocations: 200 kB / 0.6278 GB, free: 4.922 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00456/0.7266, allocations: 1.466 MB / 0.6292 GB, free: 3.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002226/0.7269, allocations: 290.9 kB / 0.6295 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/0.7319, allocations: 0.9122 MB / 0.6304 GB, free: 2.246 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006844/0.7326, allocations: 407.2 kB / 0.6308 GB, free: 1.852 MB / 478.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.004143/0.7368, allocations: 2.236 MB / 0.6329 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006111/0.7374, allocations: 304 kB / 0.6332 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007246/0.7381, allocations: 411.2 kB / 0.6336 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.509e-05/0.7382, allocations: 43.92 kB / 0.6337 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.7382, allocations: 0 / 0.6337 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.7382, allocations: 11.97 kB / 0.6337 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009403/0.7476, allocations: 5.535 MB / 0.6391 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.7477, allocations: 8 kB / 0.6391 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009835/0.7487, allocations: 204.3 kB / 0.6393 GB, free: 9.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.805e-05/0.7487, allocations: 12 kB / 0.6393 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.7488, allocations: 31.98 kB / 0.6393 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.63e-05/0.7489, allocations: 15.94 kB / 0.6393 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.7489, allocations: 7.938 kB / 0.6393 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.752, allocations: 2.537 MB / 0.6418 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008198/0.7528, allocations: 368.6 kB / 0.6422 GB, free: 5.934 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/0.7531, allocations: 28 kB / 0.6422 GB, free: 5.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.7542, allocations: 70.41 kB / 0.6423 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.7543, allocations: 80.3 kB / 0.6423 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.7544, allocations: 43.98 kB / 0.6424 GB, free: 5.719 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003709/0.7582, allocations: 2.355 MB / 0.6447 GB, free: 3.379 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7582, allocations: 0 / 0.6447 GB, free: 3.379 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00581/0.764, allocations: 1.105 MB / 0.6458 GB, free: 2.273 MB / 494.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.000594/0.7646, allocations: 158.4 kB / 0.6459 GB, free: 2.113 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007927/0.7725, allocations: 4.443 MB / 0.6503 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.7726, allocations: 4.188 kB / 0.6503 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.7738, allocations: 0.9469 MB / 0.6512 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.7763, allocations: 355 kB / 0.6515 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/0.7954, allocations: 10.41 MB / 0.6617 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003814/0.7992, allocations: 3.212 MB / 0.6648 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005496/0.8047, allocations: 2.233 MB / 0.667 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/0.8053, allocations: 223.4 kB / 0.6672 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of SimCode: time 1.443e-06/0.8053, allocations: 0 / 0.6672 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of Templates: time 0.0522/0.8575, allocations: 24.27 MB / 0.6909 GB, free: 4.105 MB / 0.5294 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