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.001128/0.001129, allocations: 118.8 kB / 17.79 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.001171/0.001171, allocations: 198 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.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2111/0.2111, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 79.86 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3987, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01819/0.417, allocations: 14.94 MB / 0.5456 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.4289, allocations: 4.426 MB / 0.5499 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003792/0.4328, allocations: 79.81 kB / 0.55 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005247/0.438, allocations: 2.219 MB / 0.5522 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007784/0.4459, allocations: 1.985 MB / 0.5541 GB, free: 10.01 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002266/0.4482, allocations: 0.6122 MB / 0.5547 GB, free: 9.395 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007544/0.4558, allocations: 4.31 MB / 0.5589 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00607/0.4619, allocations: 3.151 MB / 0.562 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/0.4654, allocations: 1.565 MB / 0.5635 GB, free: 312 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004645/0.4701, allocations: 2.227 MB / 0.5657 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001827/0.4719, allocations: 344 kB / 0.566 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003877/0.4758, allocations: 1.034 MB / 0.567 GB, free: 12.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003301/0.4792, allocations: 1.964 MB / 0.5689 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005605/0.4848, allocations: 2.376 MB / 0.5713 GB, free: 8.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.4975, allocations: 7.768 MB / 0.5788 GB, free: 0.543 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4975, allocations: 0 / 0.5788 GB, free: 0.543 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.4975, allocations: 0 / 0.5788 GB, free: 0.543 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003658/0.4979, allocations: 4 kB / 0.5789 GB, free: 0.5391 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01566/0.5136, allocations: 5.204 MB / 0.5839 GB, free: 11.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.5136, allocations: 8.031 kB / 0.5839 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01163/0.5253, allocations: 3.223 MB / 0.5871 GB, free: 8.016 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005997/0.5313, allocations: 2.378 MB / 0.5894 GB, free: 5.586 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002839/0.5316, allocations: 246.6 kB / 0.5896 GB, free: 5.344 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001568/0.5332, allocations: 335.7 kB / 0.59 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02699/0.5602, allocations: 12.24 MB / 0.6019 GB, free: 8.242 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002767/0.5605, allocations: 39.62 kB / 0.602 GB, free: 8.203 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001908/0.5625, allocations: 155.8 kB / 0.6021 GB, free: 8.051 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005346/0.5678, allocations: 2.84 MB / 0.6049 GB, free: 5.203 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02456/0.5924, allocations: 11.13 MB / 0.6157 GB, free: 10.06 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06793/0.6604, allocations: 40.58 MB / 0.6554 GB, free: 440 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009427/0.6699, allocations: 4.688 MB / 0.66 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003549/0.6735, allocations: 2.438 MB / 0.6623 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001347/0.6748, allocations: 1.315 MB / 0.6636 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.6749, allocations: 52.56 kB / 0.6637 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 5.41e-06/0.6749, allocations: 4 kB / 0.6637 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.04417/0.7191, allocations: 18.76 MB / 0.682 GB, free: 4.57 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.7192, allocations: 73.41 kB / 0.6821 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/0.723, allocations: 3.18 MB / 0.6852 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.7232, allocations: 65.69 kB / 0.6852 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00179/0.725, allocations: 3.237 MB / 0.6884 GB, free: 13.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008107/0.7259, allocations: 1.019 MB / 0.6894 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/0.7273, allocations: 1.192 MB / 0.6906 GB, free: 11.72 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.7274, allocations: 301.1 kB / 0.6908 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003363/0.7308, allocations: 2.467 MB / 0.6933 GB, free: 8.953 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005216/0.736, allocations: 5.731 MB / 0.6989 GB, free: 1.617 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009855/0.7459, allocations: 8.988 MB / 0.7076 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.009e-05/0.746, allocations: 32 kB / 0.7077 GB, free: 7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01383/0.7598, allocations: 9.029 MB / 0.7165 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.405e-05/0.7599, allocations: 56 kB / 0.7165 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/0.76, allocations: 112 kB / 0.7166 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002879/0.7629, allocations: 1.057 MB / 0.7177 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003936/0.7668, allocations: 1.341 MB / 0.719 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007118/0.774, allocations: 5.545 MB / 0.7244 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004392/0.7784, allocations: 327.7 kB / 0.7247 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/0.7795, allocations: 336 kB / 0.725 GB, free: 5.059 MB / 0.5762 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.004775/0.7843, allocations: 2.409 MB / 0.7274 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000804/0.7851, allocations: 329.8 kB / 0.7277 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3783/1.163, allocations: 5.368 MB / 0.7329 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.411e-05/1.164, allocations: 49.05 kB / 0.733 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.164, allocations: 8.75 kB / 0.733 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/1.164, allocations: 11.39 kB / 0.733 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/1.187, allocations: 13.01 MB / 0.7457 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/1.187, allocations: 14.56 kB / 0.7457 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/1.189, allocations: 423.8 kB / 0.7461 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002751/1.191, allocations: 0.8895 MB / 0.747 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/1.192, allocations: 54.28 kB / 0.7471 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005835/1.198, allocations: 4.832 MB / 0.7518 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.186e-05/1.198, allocations: 23.34 kB / 0.7518 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/1.208, allocations: 8.033 MB / 0.7596 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/1.209, allocations: 374.8 kB / 0.76 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003914/1.21, allocations: 51.98 kB / 0.76 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/1.211, allocations: 151.8 kB / 0.7602 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004446/1.211, allocations: 173.9 kB / 0.7604 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/1.212, allocations: 75.98 kB / 0.7604 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003139/1.215, allocations: 1.956 MB / 0.7623 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.31e-07/1.215, allocations: 0 / 0.7623 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005137/1.22, allocations: 1.063 MB / 0.7634 GB, free: 159.5 MB / 0.5762 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.0006012/1.221, allocations: 205.7 kB / 0.7636 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00862/1.229, allocations: 6.051 MB / 0.7695 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/1.229, allocations: 7.844 kB / 0.7695 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002592/1.232, allocations: 2.258 MB / 0.7717 GB, free: 151 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/1.234, allocations: 454.5 kB / 0.7721 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/1.252, allocations: 11.4 MB / 0.7833 GB, free: 139.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003455/1.255, allocations: 3.7 MB / 0.7869 GB, free: 135.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004086/1.259, allocations: 2.153 MB / 0.789 GB, free: 133.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007248/1.26, allocations: 239.4 kB / 0.7892 GB, free: 133 MB / 0.5762 GB Notification: Performance of SimCode: time 1.042e-06/1.26, allocations: 0 / 0.7892 GB, free: 133 MB / 0.5762 GB Notification: Performance of Templates: time 0.0595/1.319, allocations: 34.56 MB / 0.8229 GB, free: 98.59 MB / 0.5762 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