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.001178/0.001178, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 71.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1123, allocations: 62.45 MB / 481.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01247/0.1248, allocations: 11.93 MB / 493.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007829/0.1326, allocations: 4.081 MB / 497.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009113/0.1336, allocations: 75.88 kB / 497.5 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.1364, allocations: 1.662 MB / 499.2 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002707/0.1391, allocations: 1.522 MB / 0.489 GB, free: 1.184 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.1411, allocations: 1.177 MB / 0.4901 GB, free: 4 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.1451, allocations: 3.506 MB / 0.4936 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002375/0.1475, allocations: 2.454 MB / 0.4959 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001093/0.1486, allocations: 1.156 MB / 0.4971 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.1501, allocations: 1.557 MB / 0.4986 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003129/0.1505, allocations: 236 kB / 0.4988 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/0.1515, allocations: 0.7138 MB / 0.4995 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.1526, allocations: 1.543 MB / 0.501 GB, free: 4.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00141/0.154, allocations: 1.859 MB / 0.5028 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.204/0.358, allocations: 6.113 MB / 0.5088 GB, free: 20 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3581, allocations: 0 / 0.5088 GB, free: 20 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.3581, allocations: 0.625 kB / 0.5088 GB, free: 20 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001434/0.3582, allocations: 2.062 kB / 0.5088 GB, free: 20 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.005801/0.364, allocations: 3.978 MB / 0.5127 GB, free: 18.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.3641, allocations: 10.16 kB / 0.5127 GB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008886/0.373, allocations: 2.966 MB / 0.5156 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003976/0.377, allocations: 1.811 MB / 0.5174 GB, free: 17.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.3771, allocations: 192.5 kB / 0.5176 GB, free: 17.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005306/0.3777, allocations: 254 kB / 0.5178 GB, free: 17.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.3897, allocations: 10.04 MB / 0.5276 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.395e-05/0.3898, allocations: 33 kB / 0.5276 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003601/0.3902, allocations: 123.4 kB / 0.5278 GB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.3931, allocations: 2.316 MB / 0.53 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.4051, allocations: 8.926 MB / 0.5387 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04124/0.4464, allocations: 37.53 MB / 0.5754 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/0.4519, allocations: 3.385 MB / 0.5787 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.4535, allocations: 1.225 MB / 0.5799 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007779/0.4613, allocations: 5.174 MB / 0.5849 GB, free: 9.102 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.4614, allocations: 46.5 kB / 0.585 GB, free: 9.051 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.978e-06/0.4614, allocations: 2.906 kB / 0.585 GB, free: 9.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.006437/0.4678, allocations: 3.328 MB / 0.5882 GB, free: 5.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/0.4679, allocations: 169.8 kB / 0.5884 GB, free: 5.531 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00553/0.4734, allocations: 3.828 MB / 0.5921 GB, free: 1.711 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.819e-05/0.4735, allocations: 45.7 kB / 0.5922 GB, free: 1.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002426/0.476, allocations: 3.172 MB / 0.5953 GB, free: 14.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005956/0.4766, allocations: 0.6084 MB / 0.5959 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001721/0.4783, allocations: 1.308 MB / 0.5971 GB, free: 12.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.4784, allocations: 301.1 kB / 0.5974 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002758/0.4812, allocations: 1.957 MB / 0.5993 GB, free: 10.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005438/0.4866, allocations: 6.102 MB / 0.6053 GB, free: 2.223 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009025/0.4956, allocations: 8.794 MB / 0.6139 GB, free: 7.969 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.782e-05/0.4958, allocations: 44 kB / 0.6139 GB, free: 7.926 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01209/0.5079, allocations: 7.707 MB / 0.6215 GB, free: 480 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-05/0.508, allocations: 68 kB / 0.6215 GB, free: 412 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002022/0.5082, allocations: 151.9 kB / 0.6217 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001965/0.5084, allocations: 192 kB / 0.6218 GB, free: 68 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004002/0.5124, allocations: 1.459 MB / 0.6233 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002156/0.5126, allocations: 286.9 kB / 0.6235 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/0.5165, allocations: 0.9137 MB / 0.6244 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005007/0.517, allocations: 396 kB / 0.6248 GB, free: 13.02 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.002951/0.52, allocations: 2.197 MB / 0.627 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004828/0.5205, allocations: 311.9 kB / 0.6273 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007328/0.5212, allocations: 411 kB / 0.6277 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-05/0.5213, allocations: 38.03 kB / 0.6277 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.5213, allocations: 3.984 kB / 0.6277 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5213, allocations: 11.98 kB / 0.6277 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009114/0.5304, allocations: 5.458 MB / 0.633 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.5305, allocations: 4 kB / 0.633 GB, free: 4.484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008622/0.5313, allocations: 203.7 kB / 0.6332 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-05/0.5313, allocations: 11.98 kB / 0.6332 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.948e-05/0.5314, allocations: 31.84 kB / 0.6333 GB, free: 4.246 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.5314, allocations: 17.58 kB / 0.6333 GB, free: 4.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.5315, allocations: 7.938 kB / 0.6333 GB, free: 4.223 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.5342, allocations: 2.529 MB / 0.6358 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006177/0.5348, allocations: 368.7 kB / 0.6361 GB, free: 1.227 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/0.5351, allocations: 35.92 kB / 0.6362 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009015/0.536, allocations: 66.91 kB / 0.6362 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.5362, allocations: 80.34 kB / 0.6363 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.336e-05/0.5363, allocations: 44 kB / 0.6363 GB, free: 1.008 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002956/0.5392, allocations: 2.334 MB / 0.6386 GB, free: 14.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5392, allocations: 0 / 0.6386 GB, free: 14.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003975/0.5432, allocations: 1.065 MB / 0.6397 GB, free: 13.62 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.00029/0.5435, allocations: 157.6 kB / 0.6398 GB, free: 13.46 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005635/0.5492, allocations: 4.449 MB / 0.6441 GB, free: 9.051 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.5492, allocations: 0 / 0.6441 GB, free: 9.051 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.5503, allocations: 0.9506 MB / 0.6451 GB, free: 8.102 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.552, allocations: 347.9 kB / 0.6454 GB, free: 7.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.5644, allocations: 8.262 MB / 0.6535 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003324/0.5677, allocations: 3.162 MB / 0.6566 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004403/0.5721, allocations: 2.225 MB / 0.6587 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.5726, allocations: 219.4 kB / 0.6589 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of SimCode: time 1.282e-06/0.5727, allocations: 0 / 0.6589 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of Templates: time 0.04159/0.6142, allocations: 19.55 MB / 0.678 GB, free: 6.469 MB / 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches