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.001074/0.001075, allocations: 117.2 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 208.5 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2304/0.2304, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 71.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4015, allocations: 62.44 MB / 0.531 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01452/0.4161, allocations: 11.92 MB / 0.5426 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.4273, allocations: 4.067 MB / 0.5466 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003795/0.4311, allocations: 76.22 kB / 0.5467 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004443/0.4356, allocations: 1.677 MB / 0.5483 GB, free: 80 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005082/0.4408, allocations: 1.549 MB / 0.5498 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.4435, allocations: 1.177 MB / 0.551 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006164/0.4496, allocations: 3.504 MB / 0.5544 GB, free: 9.836 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004344/0.454, allocations: 2.467 MB / 0.5568 GB, free: 7.316 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00263/0.4567, allocations: 1.148 MB / 0.5579 GB, free: 6.164 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002879/0.4596, allocations: 1.569 MB / 0.5594 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.4606, allocations: 236 kB / 0.5597 GB, free: 4.359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002209/0.4628, allocations: 0.7099 MB / 0.5604 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002524/0.4654, allocations: 1.55 MB / 0.5619 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004378/0.4698, allocations: 1.863 MB / 0.5637 GB, free: 224 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008929/0.4787, allocations: 6.122 MB / 0.5697 GB, free: 10.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4788, allocations: 4 kB / 0.5697 GB, free: 10.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4788, allocations: 0 / 0.5697 GB, free: 10.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002869/0.4791, allocations: 0 / 0.5697 GB, free: 10.07 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.01042/0.4895, allocations: 3.981 MB / 0.5736 GB, free: 6.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.4896, allocations: 8.031 kB / 0.5736 GB, free: 6.012 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009941/0.4995, allocations: 2.97 MB / 0.5765 GB, free: 3.031 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00421/0.5038, allocations: 1.811 MB / 0.5782 GB, free: 1.172 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.504, allocations: 189.1 kB / 0.5784 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007523/0.5047, allocations: 251.8 kB / 0.5787 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01588/0.5206, allocations: 10.05 MB / 0.5885 GB, free: 6.035 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.6e-05/0.5207, allocations: 31.69 kB / 0.5885 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004169/0.5212, allocations: 123.8 kB / 0.5886 GB, free: 5.883 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003551/0.5247, allocations: 2.314 MB / 0.5909 GB, free: 3.562 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01716/0.5419, allocations: 8.923 MB / 0.5996 GB, free: 10.63 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04965/0.5916, allocations: 37.53 MB / 0.6362 GB, free: 3.977 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005703/0.5974, allocations: 3.378 MB / 0.6395 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.5991, allocations: 1.234 MB / 0.6408 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009187/0.6084, allocations: 5.175 MB / 0.6458 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.6085, allocations: 54.98 kB / 0.6459 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 6.482e-06/0.6085, allocations: 0 / 0.6459 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007057/0.6155, allocations: 3.32 MB / 0.6491 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.6157, allocations: 174.7 kB / 0.6493 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005707/0.6214, allocations: 3.828 MB / 0.653 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.6217, allocations: 41.7 kB / 0.653 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002879/0.6246, allocations: 3.177 MB / 0.6561 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.6256, allocations: 0.602 MB / 0.6567 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00203/0.6277, allocations: 1.309 MB / 0.658 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.6278, allocations: 301.1 kB / 0.6583 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00283/0.6307, allocations: 1.953 MB / 0.6602 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00577/0.6364, allocations: 6.112 MB / 0.6662 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/0.6468, allocations: 8.784 MB / 0.6748 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001405/0.647, allocations: 40 kB / 0.6748 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01499/0.662, allocations: 7.708 MB / 0.6823 GB, free: 72 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.6621, allocations: 71.94 kB / 0.6824 GB, free: 0 / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000208/0.6623, allocations: 148 kB / 0.6825 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.6625, allocations: 196 kB / 0.6827 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004341/0.6669, allocations: 1.454 MB / 0.6841 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002122/0.6671, allocations: 286.9 kB / 0.6844 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004768/0.6719, allocations: 0.9045 MB / 0.6853 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007098/0.6726, allocations: 407.9 kB / 0.6857 GB, free: 12.61 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.003789/0.6764, allocations: 2.195 MB / 0.6878 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006301/0.677, allocations: 311.8 kB / 0.6881 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008029/0.6778, allocations: 407.1 kB / 0.6885 GB, free: 9.695 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/0.6779, allocations: 39.98 kB / 0.6886 GB, free: 9.656 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.142e-05/0.6779, allocations: 4 kB / 0.6886 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.678, allocations: 7.922 kB / 0.6886 GB, free: 9.645 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008712/0.6867, allocations: 5.456 MB / 0.6939 GB, free: 4.062 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-05/0.6868, allocations: 12.23 kB / 0.6939 GB, free: 4.051 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.6879, allocations: 211.7 kB / 0.6941 GB, free: 3.844 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/0.6879, allocations: 11.94 kB / 0.6941 GB, free: 3.832 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.406e-05/0.688, allocations: 35.98 kB / 0.6942 GB, free: 3.797 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.475e-05/0.688, allocations: 11.98 kB / 0.6942 GB, free: 3.785 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.688, allocations: 11.94 kB / 0.6942 GB, free: 3.773 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003114/0.6911, allocations: 2.532 MB / 0.6966 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007557/0.6919, allocations: 372.9 kB / 0.697 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/0.6922, allocations: 27.94 kB / 0.697 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009052/0.6931, allocations: 71.84 kB / 0.6971 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.6933, allocations: 84.34 kB / 0.6972 GB, free: 0.582 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.256e-05/0.6934, allocations: 40 kB / 0.6972 GB, free: 0.543 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003454/0.6969, allocations: 2.338 MB / 0.6995 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/0.6969, allocations: 0 / 0.6995 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005773/0.7026, allocations: 1.067 MB / 0.7005 GB, free: 13.15 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.0004468/0.7031, allocations: 151 kB / 0.7007 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007322/0.7104, allocations: 4.449 MB / 0.705 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.6e-05/0.7105, allocations: 4 kB / 0.705 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.7118, allocations: 0.94 MB / 0.706 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.714, allocations: 369.8 kB / 0.7063 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/0.7303, allocations: 8.256 MB / 0.7144 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00373/0.7341, allocations: 3.158 MB / 0.7175 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005205/0.7393, allocations: 2.227 MB / 0.7196 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/0.7399, allocations: 219.4 kB / 0.7198 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/0.7399, allocations: 0 / 0.7198 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of Templates: time 0.3834/1.123, allocations: 21.75 MB / 0.7411 GB, free: 173.7 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