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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 200.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007774/0.0007775, allocations: 95.77 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.342/0.342, allocations: 44.82 MB / 394.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.000308, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3864, allocations: 62.97 MB / 0.5184 GB, free: 37.57 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1467/0.5331, allocations: 107.7 MB / 0.6236 GB, free: 13.58 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.5334, allocations: 91.94 kB / 0.6237 GB, free: 13.49 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.474/1.007, allocations: 78.69 MB / 0.7005 GB, free: 103.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.467e-06/1.007, allocations: 0 / 0.7005 GB, free: 103.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002252/1.008, allocations: 68.25 kB / 0.7006 GB, free: 103.6 MB / 490.7 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.01255/1.02, allocations: 3.506 MB / 0.704 GB, free: 101.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/1.02, allocations: 8.719 kB / 0.704 GB, free: 101.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/1.035, allocations: 3.352 MB / 0.7073 GB, free: 101.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007314/1.042, allocations: 2.323 MB / 0.7095 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005081/1.043, allocations: 303.5 kB / 0.7098 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00268/1.045, allocations: 387.2 kB / 0.7102 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0295/1.075, allocations: 10.48 MB / 0.7204 GB, free: 97.65 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004725/1.075, allocations: 44.97 kB / 0.7205 GB, free: 97.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002686/1.078, allocations: 201.5 kB / 0.7207 GB, free: 97.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001989/1.08, allocations: 1.099 MB / 0.7217 GB, free: 97.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/1.098, allocations: 9.137 MB / 0.7307 GB, free: 94.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05137/1.149, allocations: 46.2 MB / 0.7758 GB, free: 60.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004737/1.154, allocations: 3.374 MB / 0.7791 GB, free: 58.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001579/1.156, allocations: 1.224 MB / 0.7803 GB, free: 57.65 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007713/1.163, allocations: 5.025 MB / 0.7852 GB, free: 53.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/1.163, allocations: 51.06 kB / 0.7852 GB, free: 53.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 6.763e-06/1.163, allocations: 0 / 0.7852 GB, free: 53.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=150): time 0.006027/1.169, allocations: 3.318 MB / 0.7885 GB, free: 50.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/1.169, allocations: 170.3 kB / 0.7886 GB, free: 50.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005096/1.175, allocations: 3.838 MB / 0.7924 GB, free: 47.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/1.175, allocations: 41.7 kB / 0.7924 GB, free: 47.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/1.176, allocations: 3.231 MB / 0.7956 GB, free: 44.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006473/1.177, allocations: 0.6089 MB / 0.7962 GB, free: 44.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/1.177, allocations: 124 kB / 0.7963 GB, free: 43.89 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002978/1.178, allocations: 0.5792 MB / 0.7969 GB, free: 43.38 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/1.18, allocations: 1.908 MB / 0.7987 GB, free: 41.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/1.184, allocations: 6.087 MB / 0.8047 GB, free: 33.35 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/1.191, allocations: 8.742 MB / 0.8132 GB, free: 22.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/1.191, allocations: 44 kB / 0.8132 GB, free: 22.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=842) (initialization): time 0.01318/1.205, allocations: 7.62 MB / 0.8207 GB, free: 14.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.205, allocations: 68 kB / 0.8207 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001665/1.205, allocations: 151.9 kB / 0.8209 GB, free: 14.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/1.205, allocations: 196 kB / 0.8211 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004246/1.209, allocations: 1.463 MB / 0.8225 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001459/1.21, allocations: 294.9 kB / 0.8228 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004856/1.214, allocations: 0.9084 MB / 0.8237 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/1.216, allocations: 400 kB / 0.8241 GB, free: 11.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 677 * 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 (794): * Single equations (assignments): 788 * 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 prepare postOptimizeDAE: time 0.005593/1.221, allocations: 2.23 MB / 0.8262 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007493/1.222, allocations: 307.9 kB / 0.8265 GB, free: 8.852 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/1.223, allocations: 415.9 kB / 0.8269 GB, free: 8.438 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.778e-05/1.223, allocations: 39.98 kB / 0.827 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/1.223, allocations: 4 kB / 0.827 GB, free: 8.395 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/1.223, allocations: 3.984 kB / 0.827 GB, free: 8.391 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/1.235, allocations: 5.594 MB / 0.8324 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.835e-05/1.235, allocations: 11.94 kB / 0.8324 GB, free: 2.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009341/1.236, allocations: 211.6 kB / 0.8326 GB, free: 2.473 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/1.236, allocations: 8 kB / 0.8327 GB, free: 2.465 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/1.237, allocations: 28 kB / 0.8327 GB, free: 2.438 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.057e-05/1.237, allocations: 15.94 kB / 0.8327 GB, free: 2.422 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.237, allocations: 8.516 kB / 0.8327 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/1.24, allocations: 2.519 MB / 0.8352 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/1.241, allocations: 392.5 kB / 0.8355 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006717/1.242, allocations: 39.73 kB / 0.8356 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/1.243, allocations: 59.92 kB / 0.8356 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/1.243, allocations: 80.28 kB / 0.8357 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.243, allocations: 44 kB / 0.8358 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004389/1.247, allocations: 2.346 MB / 0.838 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.9e-07/1.247, allocations: 0 / 0.838 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005837/1.253, allocations: 1.102 MB / 0.8391 GB, free: 11.76 MB / 0.4948 GB 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.0004497/1.254, allocations: 166.4 kB / 0.8393 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007546/1.261, allocations: 4.366 MB / 0.8435 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.261, allocations: 0 / 0.8435 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00134/1.263, allocations: 0.9489 MB / 0.8445 GB, free: 6.309 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/1.268, allocations: 349.6 kB / 0.8448 GB, free: 5.977 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02062/1.288, allocations: 10.05 MB / 0.8546 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005044/1.293, allocations: 3.206 MB / 0.8578 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005913/1.299, allocations: 2.246 MB / 0.8599 GB, free: 6.387 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006102/1.3, allocations: 215.4 kB / 0.8601 GB, free: 6.176 MB / 0.5105 GB Notification: Performance of SimCode: time 6.11e-07/1.3, allocations: 0 / 0.8601 GB, free: 6.176 MB / 0.5105 GB Notification: Performance of Templates: time 0.4063/1.706, allocations: 23.91 MB / 0.8835 GB, free: 134 MB / 0.5261 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches