Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2231/0.2231, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4941/0.4955, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01696/0.5125, allocations: 15.01 MB / 0.5336 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.5242, allocations: 4.404 MB / 0.5379 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00421/0.5285, allocations: 80.31 kB / 0.5379 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005221/0.5337, allocations: 2.233 MB / 0.5401 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00729/0.5411, allocations: 2.009 MB / 0.5421 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.5434, allocations: 0.6189 MB / 0.5427 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008393/0.5518, allocations: 4.285 MB / 0.5469 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005898/0.5577, allocations: 3.162 MB / 0.55 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00424/0.562, allocations: 1.6 MB / 0.5515 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004719/0.5667, allocations: 2.235 MB / 0.5537 GB, free: 8.266 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.5686, allocations: 340 kB / 0.554 GB, free: 7.934 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003634/0.5722, allocations: 1.045 MB / 0.555 GB, free: 6.887 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003702/0.5759, allocations: 1.995 MB / 0.557 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005539/0.5815, allocations: 2.399 MB / 0.5593 GB, free: 2.473 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.5938, allocations: 7.802 MB / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.5939, allocations: 0 / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5939, allocations: 4 kB / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003985/0.5943, allocations: 0 / 0.567 GB, free: 10.64 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.01375/0.6081, allocations: 5.099 MB / 0.5719 GB, free: 5.473 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.6081, allocations: 12.03 kB / 0.572 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.6193, allocations: 3.188 MB / 0.5751 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005521/0.6249, allocations: 2.409 MB / 0.5774 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.6252, allocations: 250.6 kB / 0.5777 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.6271, allocations: 335.7 kB / 0.578 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02496/0.6521, allocations: 12.22 MB / 0.5899 GB, free: 2.469 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003807/0.6526, allocations: 47.64 kB / 0.59 GB, free: 2.422 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002285/0.6549, allocations: 151.8 kB / 0.5901 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005738/0.6606, allocations: 2.848 MB / 0.5929 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/0.6853, allocations: 11.12 MB / 0.6037 GB, free: 4.281 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06891/0.7543, allocations: 40.51 MB / 0.6433 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.7648, allocations: 4.691 MB / 0.6479 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003875/0.7687, allocations: 2.435 MB / 0.6503 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001415/0.7702, allocations: 1.307 MB / 0.6515 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.594e-05/0.7702, allocations: 60.5 kB / 0.6516 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 7.454e-06/0.7703, allocations: 0 / 0.6516 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.05323/0.8235, allocations: 18.68 MB / 0.6698 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.8237, allocations: 77.41 kB / 0.6699 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007977/0.8316, allocations: 3.168 MB / 0.673 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006043/0.8323, allocations: 61.7 kB / 0.6731 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002945/0.8352, allocations: 3.117 MB / 0.6761 GB, free: 8.441 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001644/0.8369, allocations: 0.9713 MB / 0.6771 GB, free: 7.457 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003461/0.8404, allocations: 1.183 MB / 0.6782 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8405, allocations: 309.1 kB / 0.6785 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004676/0.8452, allocations: 2.467 MB / 0.6809 GB, free: 3.484 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007536/0.8528, allocations: 5.731 MB / 0.6865 GB, free: 12.15 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/0.8647, allocations: 8.992 MB / 0.6953 GB, free: 1.559 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/0.8649, allocations: 32 kB / 0.6953 GB, free: 1.527 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01964/0.8845, allocations: 9.003 MB / 0.7041 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.8847, allocations: 52 kB / 0.7042 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002413/0.885, allocations: 112 kB / 0.7043 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003208/0.8882, allocations: 1.058 MB / 0.7053 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005157/0.8934, allocations: 1.349 MB / 0.7066 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007897/0.9013, allocations: 5.541 MB / 0.712 GB, free: 268 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005067/0.9064, allocations: 323.8 kB / 0.7123 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/0.9078, allocations: 343.9 kB / 0.7127 GB, free: 15.61 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.005985/0.9138, allocations: 2.409 MB / 0.715 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/0.915, allocations: 320 kB / 0.7153 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/0.9268, allocations: 5.368 MB / 0.7206 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.213e-05/0.9269, allocations: 47.98 kB / 0.7206 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.908e-05/0.9269, allocations: 0 / 0.7206 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.259e-05/0.927, allocations: 11.97 kB / 0.7206 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4619/1.389, allocations: 13.03 MB / 0.7333 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.228e-05/1.389, allocations: 10.91 kB / 0.7334 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/1.391, allocations: 427.6 kB / 0.7338 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002751/1.393, allocations: 0.888 MB / 0.7346 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/1.394, allocations: 55.84 kB / 0.7347 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00633/1.4, allocations: 4.833 MB / 0.7394 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.792e-05/1.4, allocations: 20.94 kB / 0.7394 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.412, allocations: 8.009 MB / 0.7472 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.413, allocations: 368.2 kB / 0.7476 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/1.413, allocations: 53.64 kB / 0.7476 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/1.414, allocations: 157.4 kB / 0.7478 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/1.415, allocations: 160.6 kB / 0.748 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/1.415, allocations: 77.11 kB / 0.748 GB, free: 173 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002717/1.418, allocations: 1.96 MB / 0.7499 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.418, allocations: 3.719 kB / 0.7499 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005519/1.423, allocations: 1.083 MB / 0.751 GB, free: 172.2 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.0005634/1.424, allocations: 196.9 kB / 0.7512 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008207/1.432, allocations: 6.051 MB / 0.7571 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/1.432, allocations: 3.438 kB / 0.7571 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002922/1.435, allocations: 2.259 MB / 0.7593 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003464/1.439, allocations: 455 kB / 0.7597 GB, free: 169 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/1.457, allocations: 11.24 MB / 0.7707 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003518/1.461, allocations: 3.708 MB / 0.7743 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004088/1.465, allocations: 2.165 MB / 0.7765 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/1.466, allocations: 235.4 kB / 0.7767 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.332e-06/1.466, allocations: 0 / 0.7767 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.05977/1.526, allocations: 34.49 MB / 0.8104 GB, free: 118.2 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches