Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001881/0.001881, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002134/0.002134, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2258/0.2258, allocations: 46.13 MB / 344.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003074/0.003074, allocations: 83.27 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1653, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01513/0.1805, allocations: 11.93 MB / 492 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008863/0.1894, allocations: 4.07 MB / 496.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002132/0.1916, allocations: 75.88 kB / 496.2 MB, free: 5.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003628/0.1953, allocations: 1.67 MB / 497.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004489/0.1998, allocations: 1.514 MB / 499.4 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002732/0.2025, allocations: 1.177 MB / 0.4888 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007073/0.2096, allocations: 3.502 MB / 0.4922 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004128/0.2138, allocations: 2.462 MB / 0.4946 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00242/0.2162, allocations: 1.152 MB / 0.4958 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002641/0.2189, allocations: 1.565 MB / 0.4973 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006396/0.2195, allocations: 236 kB / 0.4975 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.2214, allocations: 0.7099 MB / 0.4982 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.2233, allocations: 1.55 MB / 0.4997 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.2255, allocations: 1.851 MB / 0.5015 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2638/0.4894, allocations: 5.823 MB / 0.5072 GB, free: 18.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.4894, allocations: 1.219 kB / 0.5072 GB, free: 18.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4894, allocations: 0.5 kB / 0.5072 GB, free: 18.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002413/0.4897, allocations: 1.281 kB / 0.5072 GB, free: 18.57 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: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.01446/0.5041, allocations: 3.977 MB / 0.5111 GB, free: 16.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.5042, allocations: 11.75 kB / 0.5111 GB, free: 16.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01142/0.5156, allocations: 2.966 MB / 0.514 GB, free: 16.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005372/0.5211, allocations: 1.793 MB / 0.5158 GB, free: 16.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000241/0.5213, allocations: 193 kB / 0.5159 GB, free: 16.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.5229, allocations: 245 kB / 0.5162 GB, free: 16.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02105/0.5439, allocations: 10.04 MB / 0.526 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.313e-05/0.544, allocations: 28.78 kB / 0.526 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005068/0.5446, allocations: 128.4 kB / 0.5261 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003771/0.5483, allocations: 2.313 MB / 0.5284 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02343/0.5718, allocations: 8.936 MB / 0.5371 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06775/0.6396, allocations: 37.7 MB / 0.5739 GB, free: 2.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008489/0.6482, allocations: 3.381 MB / 0.5772 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.6502, allocations: 1.222 MB / 0.5784 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009269/0.6595, allocations: 5.179 MB / 0.5835 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.707e-05/0.6596, allocations: 51.36 kB / 0.5835 GB, free: 8.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.609e-06/0.6596, allocations: 0 / 0.5835 GB, free: 8.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007514/0.6671, allocations: 3.318 MB / 0.5868 GB, free: 5.367 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.6672, allocations: 174.1 kB / 0.587 GB, free: 5.164 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006729/0.674, allocations: 3.82 MB / 0.5907 GB, free: 1.352 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003147/0.6743, allocations: 45.53 kB / 0.5907 GB, free: 1.305 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003672/0.678, allocations: 3.187 MB / 0.5938 GB, free: 14.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.6791, allocations: 0.6041 MB / 0.5944 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/0.6811, allocations: 1.308 MB / 0.5957 GB, free: 12.22 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6812, allocations: 301.1 kB / 0.596 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002989/0.6842, allocations: 1.953 MB / 0.5979 GB, free: 9.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006991/0.6912, allocations: 6.113 MB / 0.6039 GB, free: 1.848 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/0.7031, allocations: 8.79 MB / 0.6125 GB, free: 7.598 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001741/0.7034, allocations: 48 kB / 0.6125 GB, free: 7.551 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01749/0.7209, allocations: 7.698 MB / 0.62 GB, free: 100 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.721, allocations: 70.5 kB / 0.6201 GB, free: 32 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/0.7213, allocations: 152 kB / 0.6202 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.7215, allocations: 192 kB / 0.6204 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004609/0.7261, allocations: 1.454 MB / 0.6218 GB, free: 14.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002451/0.7264, allocations: 290.9 kB / 0.6221 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004911/0.7313, allocations: 0.9095 MB / 0.623 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008953/0.7322, allocations: 407.7 kB / 0.6234 GB, free: 12.64 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.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 (791): * Single equations (assignments): 783 * 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.003981/0.7362, allocations: 2.195 MB / 0.6255 GB, free: 10.44 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000655/0.7369, allocations: 307.9 kB / 0.6258 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007881/0.7377, allocations: 411 kB / 0.6262 GB, free: 9.727 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.461e-05/0.7377, allocations: 40.95 kB / 0.6263 GB, free: 9.691 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.7378, allocations: 4 kB / 0.6263 GB, free: 9.688 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.7378, allocations: 3.984 kB / 0.6263 GB, free: 9.684 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009546/0.7473, allocations: 5.463 MB / 0.6316 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/0.7474, allocations: 12.12 kB / 0.6316 GB, free: 4.109 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009785/0.7484, allocations: 199.7 kB / 0.6318 GB, free: 3.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.77e-05/0.7484, allocations: 12 kB / 0.6318 GB, free: 3.902 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.432e-05/0.7485, allocations: 27.94 kB / 0.6318 GB, free: 3.875 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-05/0.7485, allocations: 15.98 kB / 0.6318 GB, free: 3.859 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/0.7485, allocations: 7.938 kB / 0.6319 GB, free: 3.852 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/0.752, allocations: 2.531 MB / 0.6343 GB, free: 1.238 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009303/0.753, allocations: 372.7 kB / 0.6347 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003213/0.7533, allocations: 32 kB / 0.6347 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009897/0.7543, allocations: 70.17 kB / 0.6348 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.7545, allocations: 78 kB / 0.6349 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7546, allocations: 47.98 kB / 0.6349 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004064/0.7586, allocations: 2.33 MB / 0.6372 GB, free: 14.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7587, allocations: 0 / 0.6372 GB, free: 14.32 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005922/0.7646, allocations: 1.066 MB / 0.6382 GB, free: 13.25 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.000474/0.7651, allocations: 154.1 kB / 0.6384 GB, free: 13.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009584/0.7747, allocations: 5.099 MB / 0.6433 GB, free: 8.027 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/0.7747, allocations: 0 / 0.6433 GB, free: 8.027 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.7763, allocations: 0.9519 MB / 0.6443 GB, free: 7.078 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.779, allocations: 350.6 kB / 0.6446 GB, free: 6.742 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/0.7958, allocations: 8.364 MB / 0.6528 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003702/0.7995, allocations: 3.16 MB / 0.6559 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005518/0.805, allocations: 2.229 MB / 0.658 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006341/0.8057, allocations: 223.4 kB / 0.6583 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of SimCode: time 1.333e-06/0.8057, allocations: 0 / 0.6583 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of Templates: time 0.06152/0.8672, allocations: 24.65 MB / 0.6823 GB, free: 148 kB / 0.5137 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches