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.0009922/0.0009921, allocations: 96.91 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 177.2 kB / 16.57 MB, free: 6.848 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.392/1.392, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3193/0.3193, allocations: 43.54 MB / 314.5 MB, free: 8.766 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.0005022/0.0005025, allocations: 15.98 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 58.87 MB / 442.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2397/0.3586, allocations: 40.3 MB / 483.1 MB, free: 26.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01977/0.3784, allocations: 9.585 MB / 492.6 MB, free: 19.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00797/0.3864, allocations: 200.1 kB / 492.8 MB, free: 19.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005872/0.3923, allocations: 2.024 MB / 494.9 MB, free: 19.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01562/0.408, allocations: 5.908 MB / 0.489 GB, free: 16.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00258/0.4106, allocations: 0.5112 MB / 0.4895 GB, free: 16.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004846/0.4154, allocations: 2.442 MB / 0.4919 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005255/0.4207, allocations: 3.578 MB / 0.4954 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.4232, allocations: 1.177 MB / 0.4966 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.4257, allocations: 1.551 MB / 0.4981 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005556/0.4262, allocations: 174.6 kB / 0.4982 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001741/0.428, allocations: 0.7627 MB / 0.499 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.4297, allocations: 1.705 MB / 0.5007 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.4309, allocations: 0.9559 MB / 0.5016 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007182/0.4381, allocations: 6.14 MB / 0.5076 GB, free: 8.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4381, allocations: 0 / 0.5076 GB, free: 8.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.4382, allocations: 0 / 0.5076 GB, free: 8.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003325/0.4385, allocations: 5.281 kB / 0.5076 GB, free: 8.672 MB / 382.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.01003/0.4485, allocations: 4.426 MB / 0.5119 GB, free: 5.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4486, allocations: 12.77 kB / 0.5119 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/0.4608, allocations: 3.837 MB / 0.5157 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006912/0.4677, allocations: 2.618 MB / 0.5182 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/0.468, allocations: 256.6 kB / 0.5185 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001846/0.4699, allocations: 350.5 kB / 0.5188 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/0.4953, allocations: 12.72 MB / 0.5312 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.4955, allocations: 39.64 kB / 0.5313 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/0.4973, allocations: 159.8 kB / 0.5314 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005554/0.5029, allocations: 3.028 MB / 0.5344 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02632/0.5292, allocations: 11.4 MB / 0.5455 GB, free: 6.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07088/0.6002, allocations: 42.42 MB / 0.5869 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009587/0.6098, allocations: 4.699 MB / 0.5915 GB, free: 5.625 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001295/0.6111, allocations: 1.319 MB / 0.5928 GB, free: 4.086 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.6112, allocations: 60.55 kB / 0.5929 GB, free: 4.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=250): time 6.613e-06/0.6112, allocations: 0 / 0.5929 GB, free: 4.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=268): time 0.04646/0.6577, allocations: 20.04 MB / 0.6124 GB, free: 15.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.6578, allocations: 107.1 kB / 0.6125 GB, free: 15.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006281/0.6641, allocations: 3.365 MB / 0.6158 GB, free: 12.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004012/0.6645, allocations: 61.69 kB / 0.6159 GB, free: 12.14 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/0.6673, allocations: 3.284 MB / 0.6191 GB, free: 8.805 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/0.6686, allocations: 0.9751 MB / 0.62 GB, free: 7.816 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004441/0.669, allocations: 116 kB / 0.6202 GB, free: 7.703 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005076/0.6695, allocations: 0.5781 MB / 0.6207 GB, free: 7.117 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004321/0.6739, allocations: 2.464 MB / 0.6231 GB, free: 4.648 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2261/0.9, allocations: 5.827 MB / 0.6288 GB, free: 136.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006135/0.9062, allocations: 3.78 MB / 0.6325 GB, free: 136.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.431e-05/0.9063, allocations: 34.69 kB / 0.6325 GB, free: 136.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01458/0.9209, allocations: 9.101 MB / 0.6414 GB, free: 134.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.921, allocations: 56.28 kB / 0.6415 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/0.9212, allocations: 120.2 kB / 0.6416 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002725/0.9239, allocations: 1.07 MB / 0.6426 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004293/0.9282, allocations: 1.389 MB / 0.644 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00574/0.934, allocations: 5.277 MB / 0.6492 GB, free: 131.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004581/0.9386, allocations: 340.8 kB / 0.6495 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009551/0.9396, allocations: 349.3 kB / 0.6498 GB, free: 131.7 MB / 494.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 (747): * Single equations (assignments): 740 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005041/0.9446, allocations: 2.485 MB / 0.6522 GB, free: 130.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006813/0.9453, allocations: 323.8 kB / 0.6525 GB, free: 130.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008924/0.9542, allocations: 5.36 MB / 0.6578 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.579e-05/0.9543, allocations: 52.84 kB / 0.6578 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-05/0.9544, allocations: 3.406 kB / 0.6578 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/0.9544, allocations: 8.719 kB / 0.6578 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02973/0.9841, allocations: 13.34 MB / 0.6709 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.099e-05/0.9842, allocations: 16.47 kB / 0.6709 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/0.9861, allocations: 421.5 kB / 0.6713 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002791/0.9889, allocations: 0.8908 MB / 0.6722 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/0.9893, allocations: 56.81 kB / 0.6722 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005349/0.9946, allocations: 4.636 MB / 0.6767 GB, free: 121.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.9946, allocations: 14.94 kB / 0.6768 GB, free: 121.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.005, allocations: 9.116 MB / 0.6857 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/1.008, allocations: 0.747 MB / 0.6864 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/1.009, allocations: 51.05 kB / 0.6864 GB, free: 115 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.011, allocations: 152.7 kB / 0.6866 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003782/1.011, allocations: 169.6 kB / 0.6867 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001939/1.012, allocations: 83.75 kB / 0.6868 GB, free: 114.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003541/1.015, allocations: 2.073 MB / 0.6888 GB, free: 113 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.015, allocations: 0 / 0.6888 GB, free: 113 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005714/1.021, allocations: 1.135 MB / 0.69 GB, free: 111.9 MB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007001/1.022, allocations: 215.1 kB / 0.6902 GB, free: 111.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007403/1.029, allocations: 6.037 MB / 0.6961 GB, free: 106.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/1.029, allocations: 0 / 0.6961 GB, free: 106.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/1.031, allocations: 2.248 MB / 0.6983 GB, free: 104.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.033, allocations: 396.8 kB / 0.6986 GB, free: 104.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.054, allocations: 13.87 MB / 0.7122 GB, free: 90.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005467/1.059, allocations: 3.931 MB / 0.716 GB, free: 86.63 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004656/1.064, allocations: 2.19 MB / 0.7182 GB, free: 84.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009271/1.065, allocations: 247.4 kB / 0.7184 GB, free: 84.19 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/1.065, allocations: 0 / 0.7184 GB, free: 84.19 MB / 494.1 MB Notification: Performance of Templates: time 0.0553/1.12, allocations: 35.48 MB / 0.753 GB, free: 48.82 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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