Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001231/0.001231, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 103.5 kB / 269.9 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3326/0.3326, allocations: 43.5 MB / 360.7 MB, free: 51.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 47.92 kB / 429.2 MB, free: 6.395 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1059, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2407/0.3466, allocations: 47.11 MB / 0.5216 GB, free: 35.67 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02106/0.3678, allocations: 9.729 MB / 0.5311 GB, free: 30.05 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01011/0.3779, allocations: 194.6 kB / 0.5313 GB, free: 30.02 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004254/0.3822, allocations: 2.207 MB / 0.5334 GB, free: 29.02 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004883/0.3871, allocations: 1.944 MB / 0.5353 GB, free: 28.21 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.3885, allocations: 0.5662 MB / 0.5359 GB, free: 27.97 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005659/0.3942, allocations: 6.266 MB / 0.542 GB, free: 26.04 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003851/0.3981, allocations: 3.124 MB / 0.5451 GB, free: 24.91 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002303/0.4004, allocations: 1.453 MB / 0.5465 GB, free: 24.35 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003117/0.4035, allocations: 2.388 MB / 0.5488 GB, free: 23.54 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001028/0.4046, allocations: 245.1 kB / 0.5491 GB, free: 23.54 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.4075, allocations: 1.011 MB / 0.55 GB, free: 23.3 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002921/0.4104, allocations: 1.977 MB / 0.552 GB, free: 22.64 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005205/0.4156, allocations: 2.402 MB / 0.5543 GB, free: 20.94 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.4276, allocations: 7.608 MB / 0.5617 GB, free: 17.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4277, allocations: 1.062 kB / 0.5617 GB, free: 17.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4277, allocations: 0 / 0.5617 GB, free: 17.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003724/0.4281, allocations: 0 / 0.5617 GB, free: 17.95 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01722/0.4453, allocations: 5.274 MB / 0.5669 GB, free: 14.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4454, allocations: 9.625 kB / 0.5669 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.4567, allocations: 3.188 MB / 0.57 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0062/0.4629, allocations: 2.454 MB / 0.5724 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.4631, allocations: 260 kB / 0.5727 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001585/0.4647, allocations: 352.7 kB / 0.573 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02152/0.4863, allocations: 12.65 MB / 0.5854 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.4864, allocations: 35.64 kB / 0.5854 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004803/0.4869, allocations: 163.8 kB / 0.5856 GB, free: 8 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005007/0.4919, allocations: 3.024 MB / 0.5885 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02241/0.5144, allocations: 11.33 MB / 0.5996 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06313/0.5775, allocations: 42.32 MB / 0.6409 GB, free: 6.188 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008685/0.5863, allocations: 4.696 MB / 0.6455 GB, free: 1.258 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/0.5895, allocations: 2.434 MB / 0.6479 GB, free: 14.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001315/0.5908, allocations: 1.319 MB / 0.6491 GB, free: 13.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.5909, allocations: 64.5 kB / 0.6492 GB, free: 13.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=250): time 6.291e-06/0.5909, allocations: 0 / 0.6492 GB, free: 13.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=268): time 0.04122/0.6321, allocations: 19.52 MB / 0.6683 GB, free: 9.516 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.6322, allocations: 107.1 kB / 0.6684 GB, free: 9.395 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004027/0.6362, allocations: 3.262 MB / 0.6716 GB, free: 6.125 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002659/0.6365, allocations: 53.7 kB / 0.6716 GB, free: 6.066 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001981/0.6385, allocations: 3.28 MB / 0.6748 GB, free: 2.738 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000982/0.6395, allocations: 0.9829 MB / 0.6758 GB, free: 1.742 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001544/0.641, allocations: 1.215 MB / 0.677 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.673e-05/0.6411, allocations: 301.1 kB / 0.6772 GB, free: 224 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003602/0.6447, allocations: 2.495 MB / 0.6797 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005634/0.6504, allocations: 5.896 MB / 0.6854 GB, free: 6.145 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2143/0.8647, allocations: 9.189 MB / 0.6944 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.547e-05/0.8648, allocations: 33.06 kB / 0.6944 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01759/0.8824, allocations: 9.175 MB / 0.7034 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/0.8825, allocations: 58.41 kB / 0.7035 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.8827, allocations: 116 kB / 0.7036 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002818/0.8855, allocations: 1.06 MB / 0.7046 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004094/0.8896, allocations: 1.395 MB / 0.706 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005753/0.8954, allocations: 5.153 MB / 0.711 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/0.8995, allocations: 334.7 kB / 0.7113 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000853/0.9003, allocations: 357.6 kB / 0.7117 GB, free: 143.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (751): * Single equations (assignments): 744 * 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.004485/0.9048, allocations: 2.482 MB / 0.7141 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005975/0.9054, allocations: 317.1 kB / 0.7144 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007877/0.9133, allocations: 5.376 MB / 0.7196 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.057e-05/0.9134, allocations: 48.47 kB / 0.7197 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.9134, allocations: 3.188 kB / 0.7197 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.9134, allocations: 10.59 kB / 0.7197 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02051/0.9339, allocations: 13.36 MB / 0.7327 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/0.934, allocations: 11.25 kB / 0.7328 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.9357, allocations: 421.9 kB / 0.7332 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002492/0.9382, allocations: 0.8911 MB / 0.734 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002384/0.9384, allocations: 57.72 kB / 0.7341 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004919/0.9433, allocations: 4.499 MB / 0.7385 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/0.9434, allocations: 23.44 kB / 0.7385 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04584/0.9892, allocations: 31.22 MB / 0.769 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/0.9908, allocations: 0.7272 MB / 0.7697 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003293/0.9911, allocations: 55.98 kB / 0.7698 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.9924, allocations: 150.8 kB / 0.7699 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003617/0.9927, allocations: 169.5 kB / 0.7701 GB, free: 109 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/0.9929, allocations: 83.92 kB / 0.7701 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002348/0.9952, allocations: 2.018 MB / 0.7721 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.112e-06/0.9952, allocations: 0 / 0.7721 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004781/1, allocations: 1.357 MB / 0.7734 GB, free: 105.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.0003917/1, allocations: 200.2 kB / 0.7736 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006668/1.007, allocations: 6.075 MB / 0.7796 GB, free: 99.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/1.007, allocations: 4 kB / 0.7796 GB, free: 99.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002254/1.009, allocations: 2.254 MB / 0.7818 GB, free: 96.98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/1.012, allocations: 422.1 kB / 0.7822 GB, free: 96.58 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01821/1.03, allocations: 16.1 MB / 0.7979 GB, free: 80.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003658/1.033, allocations: 3.909 MB / 0.8017 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004732/1.038, allocations: 2.193 MB / 0.8039 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/1.039, allocations: 247.4 kB / 0.8041 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of SimCode: time 8.01e-07/1.039, allocations: 4 kB / 0.8041 GB, free: 73.91 MB / 0.4948 GB Notification: Performance of Templates: time 0.05666/1.096, allocations: 42.31 MB / 0.8454 GB, free: 31.7 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches