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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 97.91 kB / 16.93 MB, free: 5.805 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.001949/0.001949, allocations: 187.3 kB / 17.86 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2148/0.2148, allocations: 43.53 MB / 314.6 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 68.17 kB / 383.4 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1197, allocations: 57.8 MB / 441.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01502/0.1348, allocations: 15.73 MB / 456.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1453, allocations: 4.498 MB / 461.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/0.1476, allocations: 79.81 kB / 461.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004044/0.1516, allocations: 2.254 MB / 463.8 MB, free: 272 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004991/0.1567, allocations: 2.07 MB / 465.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.1583, allocations: 0.6239 MB / 466.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006134/0.1645, allocations: 4.447 MB / 470.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00474/0.1693, allocations: 3.224 MB / 474.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.1725, allocations: 1.639 MB / 475.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003656/0.1762, allocations: 2.278 MB / 478 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00112/0.1773, allocations: 348 kB / 478.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.18, allocations: 1.049 MB / 479.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00236/0.1823, allocations: 2.053 MB / 481.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002986/0.1853, allocations: 2.489 MB / 484 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009085/0.1944, allocations: 7.706 MB / 491.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.1945, allocations: 3.984 kB / 491.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1945, allocations: 0 / 491.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002228/0.1947, allocations: 0 / 491.7 MB, free: 4.211 MB / 366.1 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.01092/0.2057, allocations: 5.265 MB / 496.9 MB, free: 14.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.2057, allocations: 15.89 kB / 497 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.2171, allocations: 3.184 MB / 0.4884 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/0.2231, allocations: 2.459 MB / 0.4908 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.2233, allocations: 254.9 kB / 0.4911 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008636/0.2242, allocations: 351.6 kB / 0.4914 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02109/0.2453, allocations: 12.66 MB / 0.5038 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.2455, allocations: 31.75 kB / 0.5038 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004484/0.2459, allocations: 155.8 kB / 0.5039 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005227/0.2512, allocations: 3.036 MB / 0.5069 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02617/0.2774, allocations: 11.33 MB / 0.518 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3072/0.5846, allocations: 42.28 MB / 0.5593 GB, free: 58.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008801/0.5935, allocations: 4.707 MB / 0.5639 GB, free: 56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/0.5964, allocations: 2.447 MB / 0.5663 GB, free: 55.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008735/0.5973, allocations: 1.315 MB / 0.5675 GB, free: 53.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.5973, allocations: 55.62 kB / 0.5676 GB, free: 53.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 4.468e-06/0.5973, allocations: 0 / 0.5676 GB, free: 53.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.03984/0.6372, allocations: 19.53 MB / 0.5867 GB, free: 41.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.6372, allocations: 99.11 kB / 0.5868 GB, free: 41.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003654/0.6409, allocations: 3.266 MB / 0.5899 GB, free: 37.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.6411, allocations: 61.14 kB / 0.59 GB, free: 37.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.6424, allocations: 3.282 MB / 0.5932 GB, free: 34.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006361/0.643, allocations: 0.9784 MB / 0.5942 GB, free: 33.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/0.6442, allocations: 1.211 MB / 0.5953 GB, free: 32.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.743e-05/0.6443, allocations: 309 kB / 0.5956 GB, free: 31.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/0.6468, allocations: 2.491 MB / 0.5981 GB, free: 29.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/0.6506, allocations: 5.892 MB / 0.6038 GB, free: 21.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007463/0.6581, allocations: 9.213 MB / 0.6128 GB, free: 11.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.447e-05/0.6581, allocations: 32 kB / 0.6128 GB, free: 11 MB / 414.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01322/0.6714, allocations: 9.171 MB / 0.6218 GB, free: 1.832 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.561e-05/0.6715, allocations: 53.25 kB / 0.6219 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.6716, allocations: 120 kB / 0.622 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002729/0.6743, allocations: 1.065 MB / 0.623 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/0.6786, allocations: 1.396 MB / 0.6244 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007161/0.6858, allocations: 5.545 MB / 0.6298 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00405/0.6899, allocations: 327.8 kB / 0.6301 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008047/0.6907, allocations: 355.9 kB / 0.6304 GB, free: 8.852 MB / 430.1 MB 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.004285/0.695, allocations: 2.485 MB / 0.6329 GB, free: 6.355 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/0.6958, allocations: 319.8 kB / 0.6332 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009333/0.7051, allocations: 5.384 MB / 0.6384 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.464e-05/0.7052, allocations: 47.98 kB / 0.6385 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.7052, allocations: 7 kB / 0.6385 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.7052, allocations: 7.969 kB / 0.6385 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/0.7282, allocations: 13.37 MB / 0.6515 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.741e-05/0.7283, allocations: 12 kB / 0.6516 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/0.73, allocations: 419.3 kB / 0.652 GB, free: 2.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002828/0.7329, allocations: 0.8945 MB / 0.6528 GB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002881/0.7332, allocations: 67.12 kB / 0.6529 GB, free: 1.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006663/0.7399, allocations: 4.835 MB / 0.6576 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.7399, allocations: 15.94 kB / 0.6576 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/0.7517, allocations: 8.034 MB / 0.6655 GB, free: 4.348 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/0.7537, allocations: 0.7312 MB / 0.6662 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006413/0.7543, allocations: 55.98 kB / 0.6662 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.7559, allocations: 147.8 kB / 0.6664 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.7563, allocations: 181.1 kB / 0.6666 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/0.7565, allocations: 75.98 kB / 0.6666 GB, free: 3.145 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002871/0.7594, allocations: 2.018 MB / 0.6686 GB, free: 1.133 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7594, allocations: 0 / 0.6686 GB, free: 1.133 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005078/0.7645, allocations: 1.108 MB / 0.6697 GB, free: 28 kB / 462.1 MB 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.0005391/0.765, allocations: 196.8 kB / 0.6699 GB, free: 15.83 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01565/0.7807, allocations: 9.729 MB / 0.6794 GB, free: 6.141 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/0.7807, allocations: 0 / 0.6794 GB, free: 6.141 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.7841, allocations: 2.262 MB / 0.6816 GB, free: 3.867 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002915/0.787, allocations: 440.5 kB / 0.682 GB, free: 3.441 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02202/0.8091, allocations: 12.27 MB / 0.694 GB, free: 7.004 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004836/0.814, allocations: 3.826 MB / 0.6977 GB, free: 3.141 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001362/0.8154, allocations: 295.4 kB / 0.698 GB, free: 2.852 MB / 494.1 MB Notification: Performance of SimCode: time 2.836e-06/0.8154, allocations: 0 / 0.698 GB, free: 2.852 MB / 494.1 MB Notification: Performance of Templates: time 0.3834/1.199, allocations: 86.6 MB / 0.7826 GB, free: 111.5 MB / 0.4981 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches