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.00118/0.00118, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 246.3 MB, free: 9.102 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2057/0.2057, allocations: 46.1 MB / 343.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 77.12 kB / 416.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1757, allocations: 62.45 MB / 479.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02175/0.1975, allocations: 22.22 MB / 0.4898 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.2117, allocations: 5.749 MB / 0.4954 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005996/0.2177, allocations: 103.8 kB / 0.4955 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0042/0.2221, allocations: 1.628 MB / 0.4971 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00483/0.2269, allocations: 1.441 MB / 0.4985 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002639/0.2296, allocations: 1.177 MB / 0.4996 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006693/0.2363, allocations: 4.949 MB / 0.5045 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3263/0.5626, allocations: 2.454 MB / 0.5069 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002937/0.5656, allocations: 1.005 MB / 0.5078 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003452/0.5691, allocations: 1.681 MB / 0.5095 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009038/0.57, allocations: 169 kB / 0.5096 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.5721, allocations: 0.6838 MB / 0.5103 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002424/0.5745, allocations: 1.505 MB / 0.5118 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002831/0.5774, allocations: 1.816 MB / 0.5135 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.5878, allocations: 5.779 MB / 0.5192 GB, free: 9.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.5879, allocations: 1.156 kB / 0.5192 GB, free: 9.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5879, allocations: 3.938 kB / 0.5192 GB, free: 9.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005642/0.5885, allocations: 0 / 0.5192 GB, free: 9.301 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.01581/0.6043, allocations: 3.977 MB / 0.5231 GB, free: 7.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.6044, allocations: 10.44 kB / 0.5231 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.6144, allocations: 2.969 MB / 0.526 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004542/0.619, allocations: 1.787 MB / 0.5277 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.6192, allocations: 198.9 kB / 0.5279 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006674/0.6199, allocations: 248.2 kB / 0.5282 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/0.6367, allocations: 10.04 MB / 0.538 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.479e-05/0.6368, allocations: 25.81 kB / 0.538 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003798/0.6372, allocations: 129.8 kB / 0.5381 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003246/0.6405, allocations: 2.305 MB / 0.5404 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.658, allocations: 8.935 MB / 0.5491 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06507/0.7231, allocations: 37.71 MB / 0.5859 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006871/0.7301, allocations: 3.375 MB / 0.5892 GB, free: 13.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002189/0.7323, allocations: 1.23 MB / 0.5904 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.7435, allocations: 5.178 MB / 0.5955 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.7436, allocations: 50.12 kB / 0.5955 GB, free: 7.352 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 6.562e-06/0.7436, allocations: 0 / 0.5955 GB, free: 7.352 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.008067/0.7517, allocations: 3.317 MB / 0.5988 GB, free: 4.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.7518, allocations: 182 kB / 0.5989 GB, free: 3.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009675/0.7615, allocations: 3.824 MB / 0.6027 GB, free: 16 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002513/0.7618, allocations: 45.69 kB / 0.6027 GB, free: 15.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003084/0.7649, allocations: 3.174 MB / 0.6058 GB, free: 12.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009998/0.7659, allocations: 0.6066 MB / 0.6064 GB, free: 12.19 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00342/0.7694, allocations: 1.304 MB / 0.6077 GB, free: 10.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.7695, allocations: 309.1 kB / 0.608 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003719/0.7732, allocations: 1.957 MB / 0.6099 GB, free: 8.613 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007391/0.7806, allocations: 6.102 MB / 0.6158 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/0.7922, allocations: 8.789 MB / 0.6244 GB, free: 6.25 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001852/0.7924, allocations: 46.81 kB / 0.6245 GB, free: 6.207 MB / 478.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01795/0.8104, allocations: 7.709 MB / 0.632 GB, free: 14.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002737/0.8107, allocations: 68 kB / 0.6321 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004144/0.8112, allocations: 152.8 kB / 0.6322 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003911/0.8116, allocations: 192 kB / 0.6324 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005821/0.8174, allocations: 1.462 MB / 0.6338 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003473/0.8178, allocations: 287.2 kB / 0.6341 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006232/0.8241, allocations: 0.9114 MB / 0.635 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00152/0.8256, allocations: 400 kB / 0.6354 GB, free: 11.3 MB / 494.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.00626/0.8319, allocations: 2.197 MB / 0.6375 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007904/0.8327, allocations: 315.9 kB / 0.6378 GB, free: 8.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.834, allocations: 411 kB / 0.6382 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.832e-05/0.8341, allocations: 32 kB / 0.6382 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.8341, allocations: 0 / 0.6382 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.8342, allocations: 11.97 kB / 0.6382 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/0.8492, allocations: 5.466 MB / 0.6436 GB, free: 2.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.231e-05/0.8493, allocations: 4 kB / 0.6436 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.8504, allocations: 203.7 kB / 0.6438 GB, free: 2.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.849e-05/0.8504, allocations: 8 kB / 0.6438 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.8506, allocations: 40.58 kB / 0.6438 GB, free: 2.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.374e-05/0.8506, allocations: 8 kB / 0.6438 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.8506, allocations: 15.94 kB / 0.6438 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/0.8543, allocations: 2.525 MB / 0.6463 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.8554, allocations: 376.7 kB / 0.6467 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008093/0.8562, allocations: 31.92 kB / 0.6467 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.8577, allocations: 59.92 kB / 0.6468 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.8579, allocations: 84.34 kB / 0.6468 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.858, allocations: 40 kB / 0.6469 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005067/0.8631, allocations: 2.334 MB / 0.6492 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8631, allocations: 4 kB / 0.6492 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006587/0.8697, allocations: 1.062 MB / 0.6502 GB, free: 11.9 MB / 0.4981 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.0006499/0.8703, allocations: 154.8 kB / 0.6503 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008269/0.8786, allocations: 4.416 MB / 0.6547 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.8787, allocations: 3.938 kB / 0.6547 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.8801, allocations: 0.9528 MB / 0.6556 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003416/0.8836, allocations: 345.7 kB / 0.6559 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.9045, allocations: 10.26 MB / 0.6659 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005436/0.9099, allocations: 3.163 MB / 0.669 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005629/0.9156, allocations: 2.22 MB / 0.6712 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005923/0.9162, allocations: 227.4 kB / 0.6714 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.9162, allocations: 0 / 0.6714 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of Templates: time 0.05224/0.9684, allocations: 23.86 MB / 0.6947 GB, free: 14.36 MB / 0.545 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