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.0008032/0.0008034, allocations: 97.48 kB / 16.02 MB, free: 80 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.0008598/0.00086, allocations: 184.8 kB / 16.92 MB, free: 6.934 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.495/1.495, allocations: 205.4 MB / 223.1 MB, free: 5.527 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.3874/0.3874, allocations: 43.57 MB / 315 MB, free: 8.758 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.0007873/0.0007868, allocations: 12.33 kB / 384.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.148, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3403/0.4883, allocations: 45.82 MB / 489.3 MB, free: 21.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0288/0.5172, allocations: 9.669 MB / 498.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01275/0.53, allocations: 192.6 kB / 499.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002739/0.5328, allocations: 0.5303 MB / 499.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007375/0.5402, allocations: 1.943 MB / 0.4898 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.5421, allocations: 0.5758 MB / 0.4904 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.553, allocations: 6.228 MB / 0.4965 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009761/0.5629, allocations: 3.953 MB / 0.5003 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004877/0.5678, allocations: 1.288 MB / 0.5016 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006818/0.5747, allocations: 2.178 MB / 0.5037 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002053/0.5768, allocations: 175.2 kB / 0.5039 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004425/0.5812, allocations: 0.9386 MB / 0.5048 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003838/0.5851, allocations: 1.893 MB / 0.5067 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007074/0.5922, allocations: 2.296 MB / 0.5089 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01376/0.606, allocations: 7.429 MB / 0.5162 GB, free: 3.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.606, allocations: 3.938 kB / 0.5162 GB, free: 3.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.578e-06/0.6061, allocations: 0 / 0.5162 GB, free: 3.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005011/0.6066, allocations: 1 kB / 0.5162 GB, free: 3.051 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.01521/0.6218, allocations: 4.292 MB / 0.5203 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.6219, allocations: 10.62 kB / 0.5204 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01371/0.6356, allocations: 3.281 MB / 0.5236 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007675/0.6433, allocations: 2.459 MB / 0.526 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/0.6436, allocations: 254.9 kB / 0.5262 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002419/0.6461, allocations: 343.7 kB / 0.5265 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02982/0.6759, allocations: 12.66 MB / 0.5389 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002002/0.6762, allocations: 39.66 kB / 0.5389 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007663/0.677, allocations: 159.8 kB / 0.5391 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006037/0.683, allocations: 3.032 MB / 0.5421 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02815/0.7112, allocations: 11.34 MB / 0.5531 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08393/0.7952, allocations: 42.33 MB / 0.5945 GB, free: 3.488 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.8064, allocations: 4.708 MB / 0.5991 GB, free: 14.55 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004603/0.811, allocations: 2.432 MB / 0.6014 GB, free: 12.11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001702/0.8128, allocations: 1.315 MB / 0.6027 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.484e-05/0.8129, allocations: 60.56 kB / 0.6028 GB, free: 10.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 9.197e-06/0.8129, allocations: 0 / 0.6028 GB, free: 10.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05475/0.8677, allocations: 19.51 MB / 0.6218 GB, free: 6.832 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/0.8678, allocations: 107.1 kB / 0.6219 GB, free: 6.711 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008111/0.876, allocations: 3.262 MB / 0.6251 GB, free: 3.441 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007285/0.8767, allocations: 57.7 kB / 0.6252 GB, free: 3.379 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003064/0.8798, allocations: 3.284 MB / 0.6284 GB, free: 48 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.3979/1.278, allocations: 0.971 MB / 0.6293 GB, free: 109.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/1.279, allocations: 0.5298 MB / 0.6298 GB, free: 109.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.312e-05/1.279, allocations: 303.2 kB / 0.6301 GB, free: 109.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004286/1.283, allocations: 2.491 MB / 0.6326 GB, free: 109.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006222/1.29, allocations: 5.895 MB / 0.6383 GB, free: 104.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/1.302, allocations: 9.191 MB / 0.6473 GB, free: 100.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002117/1.302, allocations: 36.25 kB / 0.6473 GB, free: 100.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02444/1.327, allocations: 9.179 MB / 0.6563 GB, free: 98.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000197/1.327, allocations: 59.53 kB / 0.6564 GB, free: 98.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003141/1.327, allocations: 120.3 kB / 0.6565 GB, free: 98.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004255/1.331, allocations: 1.055 MB / 0.6575 GB, free: 98.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007081/1.339, allocations: 1.395 MB / 0.6589 GB, free: 98.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008955/1.348, allocations: 5.15 MB / 0.6639 GB, free: 95.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006229/1.354, allocations: 329.4 kB / 0.6642 GB, free: 95.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001866/1.356, allocations: 352.4 kB / 0.6645 GB, free: 95.54 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 (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.008483/1.364, allocations: 2.488 MB / 0.667 GB, free: 94.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000839/1.365, allocations: 325.6 kB / 0.6673 GB, free: 94.39 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.377, allocations: 5.375 MB / 0.6725 GB, free: 92.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-05/1.377, allocations: 49.59 kB / 0.6726 GB, free: 92.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.081e-05/1.377, allocations: 7.844 kB / 0.6726 GB, free: 92.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-05/1.377, allocations: 9.422 kB / 0.6726 GB, free: 92.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02954/1.407, allocations: 13.36 MB / 0.6856 GB, free: 85.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.581e-05/1.407, allocations: 12 kB / 0.6857 GB, free: 85.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001836/1.409, allocations: 422.8 kB / 0.6861 GB, free: 85.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/1.411, allocations: 0.8906 MB / 0.6869 GB, free: 84.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003933/1.412, allocations: 60.91 kB / 0.687 GB, free: 84.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/1.417, allocations: 4.507 MB / 0.6914 GB, free: 80.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/1.417, allocations: 19.12 kB / 0.6914 GB, free: 80.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/1.428, allocations: 8.032 MB / 0.6993 GB, free: 72.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/1.43, allocations: 0.7422 MB / 0.7 GB, free: 71.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/1.431, allocations: 55.98 kB / 0.7 GB, free: 71.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/1.433, allocations: 143.8 kB / 0.7002 GB, free: 71.65 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004224/1.434, allocations: 173.2 kB / 0.7003 GB, free: 71.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/1.434, allocations: 79.98 kB / 0.7004 GB, free: 71.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004347/1.438, allocations: 2.014 MB / 0.7024 GB, free: 69.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.438, allocations: 0 / 0.7024 GB, free: 69.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008068/1.446, allocations: 1.113 MB / 0.7035 GB, free: 68.3 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 (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.0007184/1.447, allocations: 198.4 kB / 0.7037 GB, free: 68.13 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0108/1.458, allocations: 6.074 MB / 0.7096 GB, free: 62.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/1.458, allocations: 0 / 0.7096 GB, free: 62.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003489/1.461, allocations: 2.249 MB / 0.7118 GB, free: 60.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008667/1.47, allocations: 421.8 kB / 0.7122 GB, free: 59.81 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02748/1.498, allocations: 14.43 MB / 0.7263 GB, free: 45.26 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007344/1.505, allocations: 3.834 MB / 0.73 GB, free: 41.39 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005912/1.511, allocations: 2.186 MB / 0.7322 GB, free: 39.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/1.512, allocations: 251.3 kB / 0.7324 GB, free: 38.95 MB / 494.1 MB Notification: Performance of SimCode: time 1.382e-06/1.512, allocations: 0 / 0.7324 GB, free: 38.95 MB / 494.1 MB Notification: Performance of Templates: time 0.09749/1.61, allocations: 35.69 MB / 0.7673 GB, free: 3.426 MB / 494.1 MB 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/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