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.001393/0.001393, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002594/0.002593, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 71.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4264, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01391/0.4404, allocations: 11.93 MB / 0.5426 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.4504, allocations: 4.061 MB / 0.5466 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.4535, allocations: 76.16 kB / 0.5467 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.4576, allocations: 1.67 MB / 0.5483 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004848/0.4625, allocations: 1.525 MB / 0.5498 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002814/0.4653, allocations: 1.173 MB / 0.5509 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006161/0.4715, allocations: 3.512 MB / 0.5544 GB, free: 9.723 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00394/0.4755, allocations: 2.453 MB / 0.5568 GB, free: 7.219 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002335/0.4779, allocations: 1.164 MB / 0.5579 GB, free: 6.051 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002556/0.4804, allocations: 1.565 MB / 0.5594 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.4815, allocations: 236 kB / 0.5596 GB, free: 4.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.4835, allocations: 0.7061 MB / 0.5603 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.4856, allocations: 1.539 MB / 0.5618 GB, free: 2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002493/0.4881, allocations: 1.863 MB / 0.5637 GB, free: 128 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007166/0.4953, allocations: 6.143 MB / 0.5697 GB, free: 9.957 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4953, allocations: 3.938 kB / 0.5697 GB, free: 9.953 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4953, allocations: 0 / 0.5697 GB, free: 9.953 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001961/0.4955, allocations: 0 / 0.5697 GB, free: 9.953 MB / 430.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.007349/0.5029, allocations: 4.09 MB / 0.5737 GB, free: 5.785 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.503, allocations: 12.03 kB / 0.5737 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/0.513, allocations: 2.993 MB / 0.5766 GB, free: 2.773 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004615/0.5177, allocations: 1.82 MB / 0.5784 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.5179, allocations: 193.1 kB / 0.5785 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008076/0.5187, allocations: 247.8 kB / 0.5788 GB, free: 484 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.5348, allocations: 10.04 MB / 0.5886 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-05/0.535, allocations: 31.69 kB / 0.5886 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003662/0.5353, allocations: 127.8 kB / 0.5887 GB, free: 5.621 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003649/0.539, allocations: 2.302 MB / 0.591 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01795/0.557, allocations: 8.934 MB / 0.5997 GB, free: 10.37 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05004/0.607, allocations: 37.6 MB / 0.6364 GB, free: 3.645 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005707/0.6128, allocations: 3.386 MB / 0.6397 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/0.6147, allocations: 1.234 MB / 0.641 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.6257, allocations: 5.192 MB / 0.646 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.773e-05/0.6258, allocations: 55.05 kB / 0.6461 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 4.659e-06/0.6259, allocations: 0 / 0.6461 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.00701/0.6329, allocations: 3.334 MB / 0.6493 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.94e-05/0.633, allocations: 170.8 kB / 0.6495 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006372/0.6394, allocations: 3.837 MB / 0.6532 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002649/0.6397, allocations: 41.7 kB / 0.6533 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002451/0.6421, allocations: 3.321 MB / 0.6565 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000812/0.643, allocations: 0.6321 MB / 0.6571 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.6446, allocations: 1.314 MB / 0.6584 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.6448, allocations: 301.1 kB / 0.6587 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.6475, allocations: 1.961 MB / 0.6606 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005621/0.6531, allocations: 6.1 MB / 0.6666 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009871/0.663, allocations: 8.792 MB / 0.6752 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/0.6632, allocations: 44 kB / 0.6752 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01365/0.6768, allocations: 7.717 MB / 0.6827 GB, free: 15.52 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.975e-05/0.677, allocations: 71.94 kB / 0.6828 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001611/0.6771, allocations: 148.8 kB / 0.683 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.6773, allocations: 192 kB / 0.6831 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00446/0.6818, allocations: 1.462 MB / 0.6846 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002165/0.682, allocations: 286.9 kB / 0.6848 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/0.6871, allocations: 0.9345 MB / 0.6858 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007434/0.6879, allocations: 404 kB / 0.6861 GB, free: 12.04 MB / 0.545 GB 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.003657/0.6915, allocations: 2.198 MB / 0.6883 GB, free: 9.828 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005954/0.6921, allocations: 325.7 kB / 0.6886 GB, free: 9.508 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008035/0.6929, allocations: 411.1 kB / 0.689 GB, free: 9.102 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.166e-05/0.693, allocations: 35.98 kB / 0.689 GB, free: 9.066 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.693, allocations: 320 / 0.689 GB, free: 9.066 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.693, allocations: 3.984 kB / 0.689 GB, free: 9.062 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008287/0.7013, allocations: 5.475 MB / 0.6944 GB, free: 3.461 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.7014, allocations: 7.938 kB / 0.6944 GB, free: 3.453 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000949/0.7023, allocations: 203.7 kB / 0.6946 GB, free: 3.254 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.558e-05/0.7024, allocations: 11.94 kB / 0.6946 GB, free: 3.242 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/0.7025, allocations: 31.98 kB / 0.6946 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.54e-05/0.7025, allocations: 20.55 kB / 0.6946 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.7025, allocations: 11.94 kB / 0.6946 GB, free: 3.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002901/0.7054, allocations: 2.548 MB / 0.6971 GB, free: 0.543 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006528/0.7061, allocations: 394.5 kB / 0.6975 GB, free: 140 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.7063, allocations: 27.94 kB / 0.6975 GB, free: 112 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009444/0.7073, allocations: 63.91 kB / 0.6976 GB, free: 48 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.7075, allocations: 84.28 kB / 0.6977 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-05/0.7076, allocations: 40 kB / 0.6977 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003636/0.7112, allocations: 2.342 MB / 0.7 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7112, allocations: 0 / 0.7 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00536/0.7166, allocations: 1.072 MB / 0.7011 GB, free: 12.52 MB / 0.5606 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 (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.0003722/0.717, allocations: 150.9 kB / 0.7012 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006708/0.7237, allocations: 4.451 MB / 0.7055 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.7237, allocations: 0 / 0.7055 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.7249, allocations: 0.9528 MB / 0.7065 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/0.7268, allocations: 364.9 kB / 0.7068 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.7414, allocations: 8.383 MB / 0.715 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/0.745, allocations: 3.158 MB / 0.7181 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004865/0.7499, allocations: 2.223 MB / 0.7203 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005606/0.7504, allocations: 219.4 kB / 0.7205 GB, free: 8.512 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.7505, allocations: 4 kB / 0.7205 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of Templates: time 0.3751/1.126, allocations: 21.73 MB / 0.7417 GB, free: 172.9 MB / 0.5762 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