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.001496/0.001497, allocations: 93.3 kB / 16.98 MB, free: 5.938 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.001705/0.001705, allocations: 185.8 kB / 17.87 MB, free: 5.594 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.548/1.548, allocations: 223.2 MB / 241.8 MB, free: 384 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2035/0.2035, allocations: 44.22 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003231, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1373, allocations: 61.92 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02255/0.1599, allocations: 22.1 MB / 493.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.174, allocations: 6.131 MB / 499.7 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005323/0.1794, allocations: 111.8 kB / 499.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004647/0.184, allocations: 1.155 MB / 0.4892 GB, free: 168 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01211/0.1962, allocations: 3.117 MB / 0.4922 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.1998, allocations: 0.5485 MB / 0.4928 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004639/0.2044, allocations: 1.968 MB / 0.4947 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004176/0.2086, allocations: 2.786 MB / 0.4974 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.2099, allocations: 0.8253 MB / 0.4982 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.2111, allocations: 1.07 MB / 0.4993 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003417/0.2115, allocations: 124 kB / 0.4994 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.2125, allocations: 0.5189 MB / 0.4999 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.2137, allocations: 1.332 MB / 0.5012 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007079/0.2144, allocations: 0.7647 MB / 0.5019 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3072/0.5216, allocations: 4.797 MB / 0.5066 GB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.5216, allocations: 0 / 0.5066 GB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.5216, allocations: 0 / 0.5066 GB, free: 15.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003067/0.522, allocations: 0 / 0.5066 GB, free: 15.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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.009343/0.5313, allocations: 3.406 MB / 0.51 GB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.5314, allocations: 9.969 kB / 0.51 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01309/0.5445, allocations: 3.64 MB / 0.5135 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006254/0.5508, allocations: 1.8 MB / 0.5153 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.551, allocations: 195.9 kB / 0.5155 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00209/0.5531, allocations: 251.7 kB / 0.5157 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02471/0.5779, allocations: 10.24 MB / 0.5257 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.5781, allocations: 27.81 kB / 0.5257 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001223/0.5793, allocations: 127.4 kB / 0.5258 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006015/0.5853, allocations: 2.386 MB / 0.5282 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02073/0.6061, allocations: 9.068 MB / 0.537 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05248/0.6587, allocations: 38.18 MB / 0.5743 GB, free: 6.336 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005928/0.6646, allocations: 3.387 MB / 0.5776 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009877/0.6745, allocations: 5.207 MB / 0.5827 GB, free: 13.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/0.6746, allocations: 46.69 kB / 0.5828 GB, free: 13.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 5.13e-06/0.6747, allocations: 4 kB / 0.5828 GB, free: 13.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007428/0.6821, allocations: 3.829 MB / 0.5865 GB, free: 9.398 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.6822, allocations: 172.7 kB / 0.5867 GB, free: 9.195 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00558/0.6878, allocations: 3.848 MB / 0.5904 GB, free: 5.355 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.688, allocations: 46.72 kB / 0.5905 GB, free: 5.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002303/0.6903, allocations: 3.226 MB / 0.5936 GB, free: 2.102 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/0.6911, allocations: 0.6113 MB / 0.5942 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.6913, allocations: 124 kB / 0.5943 GB, free: 1.375 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003398/0.6917, allocations: 0.5829 MB / 0.5949 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002895/0.6946, allocations: 1.935 MB / 0.5968 GB, free: 14.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005872/0.7004, allocations: 6.111 MB / 0.6028 GB, free: 6.719 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004626/0.7051, allocations: 3.449 MB / 0.6061 GB, free: 3.406 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.888e-05/0.7052, allocations: 44 kB / 0.6062 GB, free: 3.363 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01246/0.7176, allocations: 7.698 MB / 0.6137 GB, free: 12.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.758e-05/0.7178, allocations: 68 kB / 0.6138 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/0.7179, allocations: 152.3 kB / 0.6139 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001916/0.7181, allocations: 216 kB / 0.6141 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/0.7226, allocations: 1.478 MB / 0.6155 GB, free: 10.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002278/0.7229, allocations: 290.9 kB / 0.6158 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005206/0.7281, allocations: 0.9211 MB / 0.6167 GB, free: 9.125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005979/0.7287, allocations: 400 kB / 0.6171 GB, free: 8.734 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003526/0.7323, allocations: 2.235 MB / 0.6193 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/0.7328, allocations: 315.9 kB / 0.6196 GB, free: 6.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006291/0.7335, allocations: 403.4 kB / 0.62 GB, free: 5.785 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-05/0.7335, allocations: 39.98 kB / 0.62 GB, free: 5.746 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.7336, allocations: 4 kB / 0.62 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.7336, allocations: 3.984 kB / 0.62 GB, free: 5.738 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009066/0.7426, allocations: 5.525 MB / 0.6254 GB, free: 116 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.7427, allocations: 5.859 kB / 0.6254 GB, free: 112 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009075/0.7436, allocations: 208.4 kB / 0.6256 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/0.7436, allocations: 19.95 kB / 0.6256 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.91e-05/0.7437, allocations: 27.94 kB / 0.6257 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-05/0.7437, allocations: 11.94 kB / 0.6257 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/0.7437, allocations: 15.92 kB / 0.6257 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.7468, allocations: 3.104 MB / 0.6287 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000856/0.7477, allocations: 392.5 kB / 0.6291 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002974/0.748, allocations: 24.31 kB / 0.6291 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000975/0.749, allocations: 59.92 kB / 0.6292 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.7492, allocations: 84.3 kB / 0.6293 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.7493, allocations: 55.5 kB / 0.6293 GB, free: 11.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003574/0.7528, allocations: 2.335 MB / 0.6316 GB, free: 9.582 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.7529, allocations: 0 / 0.6316 GB, free: 9.582 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005348/0.7582, allocations: 1.102 MB / 0.6327 GB, free: 8.48 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005233/0.7588, allocations: 160.3 kB / 0.6328 GB, free: 8.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008266/0.767, allocations: 4.408 MB / 0.6371 GB, free: 3.949 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.7671, allocations: 0 / 0.6371 GB, free: 3.949 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.7684, allocations: 0.9494 MB / 0.6381 GB, free: 3.008 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.7703, allocations: 341.1 kB / 0.6384 GB, free: 2.676 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.7869, allocations: 9.993 MB / 0.6481 GB, free: 8.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00399/0.791, allocations: 3.282 MB / 0.6513 GB, free: 5.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006551/0.7975, allocations: 2.237 MB / 0.6535 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007433/0.7983, allocations: 227.4 kB / 0.6537 GB, free: 2.801 MB / 494.1 MB Notification: Performance of SimCode: time 3.086e-06/0.7983, allocations: 0 / 0.6537 GB, free: 2.801 MB / 494.1 MB Notification: Performance of Templates: time 0.04981/0.8482, allocations: 23.67 MB / 0.6769 GB, free: 11.3 MB / 0.5137 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches