Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.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.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.7 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2539/0.2539, allocations: 46.19 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005189/0.0005189, allocations: 11.98 kB / 419.5 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1758, allocations: 63.56 MB / 483.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3658/0.5417, allocations: 44.8 MB / 0.5155 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02409/0.5658, allocations: 9.483 MB / 0.5248 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01334/0.5792, allocations: 195 kB / 0.525 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.581, allocations: 0.5114 MB / 0.5255 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006213/0.5872, allocations: 1.86 MB / 0.5273 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.5888, allocations: 0.5681 MB / 0.5278 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00984/0.5986, allocations: 6.017 MB / 0.5337 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005458/0.6041, allocations: 3.883 MB / 0.5375 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002324/0.6064, allocations: 1.222 MB / 0.5387 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002448/0.6089, allocations: 2.113 MB / 0.5408 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004106/0.6093, allocations: 169.5 kB / 0.5409 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.6113, allocations: 0.9195 MB / 0.5418 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.6127, allocations: 1.799 MB / 0.5436 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.6146, allocations: 2.19 MB / 0.5457 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008214/0.6229, allocations: 7.144 MB / 0.5527 GB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.6229, allocations: 8 kB / 0.5527 GB, free: 9.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6229, allocations: 0 / 0.5527 GB, free: 9.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002397/0.6231, allocations: 0 / 0.5527 GB, free: 9.152 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.008735/0.6319, allocations: 4.12 MB / 0.5567 GB, free: 4.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.6319, allocations: 12.03 kB / 0.5567 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/0.6434, allocations: 3.281 MB / 0.5599 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006348/0.6497, allocations: 2.343 MB / 0.5622 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.6501, allocations: 247.2 kB / 0.5625 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/0.6512, allocations: 330.6 kB / 0.5628 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/0.675, allocations: 12.24 MB / 0.5747 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.6752, allocations: 35.64 kB / 0.5748 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004788/0.6757, allocations: 157.4 kB / 0.5749 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005223/0.6809, allocations: 2.854 MB / 0.5777 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/0.7045, allocations: 11.14 MB / 0.5886 GB, free: 4.098 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0659/0.7705, allocations: 40.72 MB / 0.6283 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/0.7809, allocations: 4.695 MB / 0.6329 GB, free: 5.652 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003985/0.785, allocations: 2.431 MB / 0.6353 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/0.7865, allocations: 1.315 MB / 0.6366 GB, free: 1.695 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.103e-05/0.7866, allocations: 52.56 kB / 0.6366 GB, free: 1.637 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.893e-06/0.7866, allocations: 0 / 0.6366 GB, free: 1.637 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.05032/0.8369, allocations: 18.68 MB / 0.6549 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.8371, allocations: 77.41 kB / 0.655 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006932/0.844, allocations: 3.163 MB / 0.658 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005175/0.8446, allocations: 64.98 kB / 0.6581 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002731/0.8473, allocations: 3.108 MB / 0.6611 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00149/0.8488, allocations: 0.9768 MB / 0.6621 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.8502, allocations: 0.5253 MB / 0.6626 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.8503, allocations: 305.1 kB / 0.6629 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004586/0.8549, allocations: 2.467 MB / 0.6653 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008407/0.8633, allocations: 5.727 MB / 0.6709 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/0.8757, allocations: 8.984 MB / 0.6797 GB, free: 2.195 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/0.8758, allocations: 32 kB / 0.6797 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01958/0.8954, allocations: 9.004 MB / 0.6885 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.8956, allocations: 52 kB / 0.6885 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002231/0.8958, allocations: 116.8 kB / 0.6887 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003354/0.8992, allocations: 1.054 MB / 0.6897 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005089/0.9043, allocations: 1.345 MB / 0.691 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007329/0.9117, allocations: 5.146 MB / 0.696 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004328/0.916, allocations: 326.3 kB / 0.6963 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/0.9171, allocations: 344 kB / 0.6967 GB, free: 0.6445 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 722 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005761/0.9229, allocations: 2.412 MB / 0.699 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008288/0.9237, allocations: 316 kB / 0.6993 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/0.9343, allocations: 5.364 MB / 0.7046 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.127e-05/0.9344, allocations: 50.25 kB / 0.7046 GB, free: 8.438 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.9344, allocations: 4 kB / 0.7046 GB, free: 8.434 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/0.9345, allocations: 7.969 kB / 0.7046 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3233/1.258, allocations: 13.06 MB / 0.7174 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/1.258, allocations: 10.34 kB / 0.7174 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.26, allocations: 427.6 kB / 0.7178 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003132/1.263, allocations: 0.8871 MB / 0.7187 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002762/1.263, allocations: 54.03 kB / 0.7187 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006761/1.27, allocations: 4.504 MB / 0.7231 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.068e-05/1.27, allocations: 17.23 kB / 0.7231 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/1.285, allocations: 8.01 MB / 0.731 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.286, allocations: 370.3 kB / 0.7313 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000454/1.287, allocations: 53.31 kB / 0.7314 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/1.288, allocations: 149.6 kB / 0.7315 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/1.288, allocations: 167.7 kB / 0.7317 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/1.289, allocations: 82.08 kB / 0.7317 GB, free: 183.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002867/1.291, allocations: 1.96 MB / 0.7337 GB, free: 183.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.291, allocations: 0 / 0.7337 GB, free: 183.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005377/1.297, allocations: 1.061 MB / 0.7347 GB, free: 183 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000502/1.297, allocations: 201.2 kB / 0.7349 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009163/1.307, allocations: 5.993 MB / 0.7407 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.77e-05/1.307, allocations: 3.969 kB / 0.7407 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002881/1.309, allocations: 2.254 MB / 0.7429 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007161/1.317, allocations: 433.8 kB / 0.7434 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01884/1.336, allocations: 13.92 MB / 0.7569 GB, free: 170.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003816/1.339, allocations: 3.703 MB / 0.7606 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004499/1.344, allocations: 2.158 MB / 0.7627 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007254/1.345, allocations: 239.3 kB / 0.7629 GB, free: 165.6 MB / 0.545 GB Notification: Performance of SimCode: time 3.156e-06/1.345, allocations: 0 / 0.7629 GB, free: 165.6 MB / 0.545 GB Notification: Performance of Templates: time 0.05525/1.4, allocations: 35.24 MB / 0.7973 GB, free: 130.5 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches