Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 179.6 kB / 8.521 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 221.4 MB / 230.3 MB, free: 7.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009515/0.0009517, allocations: 90.09 kB / 281.2 MB, free: 5.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1854/0.1854, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.352e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1365, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4985, allocations: 106.1 MB / 0.5977 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.4987, allocations: 83.94 kB / 0.5978 GB, free: 6.582 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4874/0.9861, allocations: 124.4 MB / 0.7193 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000293/0.9865, allocations: 117 kB / 0.7194 GB, free: 110.1 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01945/1.006, allocations: 6.027 MB / 0.7253 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/1.006, allocations: 18 kB / 0.7253 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02254/1.029, allocations: 5.571 MB / 0.7308 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02099/1.05, allocations: 8.037 MB / 0.7386 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004413/1.05, allocations: 184.2 kB / 0.7388 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003472/1.054, allocations: 339.3 kB / 0.7391 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01693/1.071, allocations: 10.83 MB / 0.7497 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02722/1.098, allocations: 13.94 MB / 0.7633 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005786/1.098, allocations: 58.11 kB / 0.7634 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003281/1.102, allocations: 20.12 kB / 0.7634 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00332/1.105, allocations: 1.773 MB / 0.7651 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08113/1.186, allocations: 54.22 MB / 0.8181 GB, free: 57.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007791/1.194, allocations: 5.797 MB / 0.8237 GB, free: 52.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005701/1.2, allocations: 5.135 MB / 0.8288 GB, free: 47.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02894/1.229, allocations: 18.21 MB / 0.8465 GB, free: 27.83 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/1.229, allocations: 60.83 kB / 0.8466 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=336): time 6.803e-06/1.229, allocations: 0 / 0.8466 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=389): time 0.06832/1.297, allocations: 33.74 MB / 0.8795 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/1.297, allocations: 111.8 kB / 0.8796 GB, free: 9.867 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006835/1.304, allocations: 3.704 MB / 0.8833 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006423/1.305, allocations: 29.7 kB / 0.8833 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002474/1.307, allocations: 3.662 MB / 0.8869 GB, free: 2.398 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001825/1.309, allocations: 1.36 MB / 0.8882 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006804/1.31, allocations: 0 / 0.8882 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000577/1.31, allocations: 0.6451 MB / 0.8888 GB, free: 376 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1602/1.471, allocations: 3.893 MB / 0.8926 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006074/1.477, allocations: 7.852 MB / 0.9003 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006666/1.483, allocations: 5.568 MB / 0.9057 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.408e-05/1.483, allocations: 38.78 kB / 0.9058 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1056) (initialization): time 0.0217/1.505, allocations: 13.28 MB / 0.9187 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/1.505, allocations: 3.875 kB / 0.9187 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/1.505, allocations: 139.1 kB / 0.9189 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007227/1.513, allocations: 2.42 MB / 0.9212 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007726/1.52, allocations: 1.899 MB / 0.9231 GB, free: 167 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01628/1.537, allocations: 12.48 MB / 0.9353 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00695/1.544, allocations: 257.2 kB / 0.9355 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001606/1.545, allocations: 453.9 kB / 0.936 GB, free: 163.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (959): * Single equations (assignments): 951 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001549/1.547, allocations: 474 kB / 0.9364 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008971/1.548, allocations: 452.4 kB / 0.9368 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01558/1.563, allocations: 9.523 MB / 0.9461 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.48e-05/1.563, allocations: 57.59 kB / 0.9462 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/1.564, allocations: 10.72 kB / 0.9462 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.003e-05/1.564, allocations: 17.48 kB / 0.9462 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03274/1.596, allocations: 17.63 MB / 0.9634 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.596, allocations: 4 kB / 0.9634 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/1.6, allocations: 0.6422 MB / 0.9641 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007259/1.608, allocations: 2.197 MB / 0.9662 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008566/1.609, allocations: 16 kB / 0.9662 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/1.622, allocations: 11.36 MB / 0.9773 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/1.622, allocations: 7.938 kB / 0.9773 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01921/1.641, allocations: 14.58 MB / 0.9916 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.642, allocations: 475.2 kB / 0.992 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008639/1.643, allocations: 18.34 kB / 0.992 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/1.646, allocations: 139.4 kB / 0.9922 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/1.646, allocations: 181.5 kB / 0.9924 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000305/1.646, allocations: 99.23 kB / 0.9924 GB, free: 128 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003114/1.65, allocations: 2.504 MB / 0.9949 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006423/1.656, allocations: 1.421 MB / 0.9963 GB, free: 124.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 298 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 29,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006923/1.657, allocations: 163.6 kB / 0.9964 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0116/1.668, allocations: 9.382 MB / 1.006 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/1.668, allocations: 4 kB / 1.006 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004692/1.673, allocations: 3.96 MB / 1.009 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002841/1.676, allocations: 483.1 kB / 1.01 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/1.7, allocations: 12.82 MB / 1.022 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008275/1.708, allocations: 5.015 MB / 1.027 GB, free: 96.57 MB / 0.5105 GB Notification: Performance of SimCode: time 1.262e-06/1.708, allocations: 0 / 1.027 GB, free: 96.57 MB / 0.5105 GB Notification: Performance of Templates: time 0.1029/1.811, allocations: 67.13 MB / 1.093 GB, free: 32.56 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches