Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [: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.001053/0.001053, allocations: 183.4 kB / 8.135 MB, free: 2.219 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.188/1.188, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009812/0.0009812, allocations: 102.2 kB / 280.8 MB, free: 1.324 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.941e-06/5.971e-06, allocations: 0 / 336.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2013, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.3055, allocations: 95.05 MB / 482 MB, free: 7.734 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.3057, allocations: 88.75 kB / 482.1 MB, free: 7.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.414/0.7198, allocations: 120.7 MB / 0.5886 GB, free: 19.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003638/0.7202, allocations: 120 kB / 0.5887 GB, free: 19.17 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01784/0.738, allocations: 6.426 MB / 0.595 GB, free: 12.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.7381, allocations: 8.031 kB / 0.595 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03305/0.7711, allocations: 9.003 MB / 0.6038 GB, free: 3.633 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0201/0.7913, allocations: 8.161 MB / 0.6118 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002908/0.7916, allocations: 188 kB / 0.612 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/0.794, allocations: 347.8 kB / 0.6123 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01664/0.8106, allocations: 9.188 MB / 0.6213 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02753/0.8382, allocations: 13.34 MB / 0.6343 GB, free: 3.156 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004664/0.8387, allocations: 91.14 kB / 0.6344 GB, free: 3.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002268/0.841, allocations: 36 kB / 0.6344 GB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002389/0.8434, allocations: 1.544 MB / 0.6359 GB, free: 1.484 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1896/1.033, allocations: 64.52 MB / 0.6989 GB, free: 74.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006985/1.04, allocations: 7.167 MB / 0.7059 GB, free: 74.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004978/1.045, allocations: 5.504 MB / 0.7113 GB, free: 74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01809/1.063, allocations: 14.12 MB / 0.7251 GB, free: 71.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/1.063, allocations: 77.78 kB / 0.7252 GB, free: 71.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.335e-06/1.063, allocations: 0 / 0.7252 GB, free: 71.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.1695/1.233, allocations: 72.52 MB / 0.796 GB, free: 33.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/1.233, allocations: 269.5 kB / 0.7962 GB, free: 32.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005243/1.238, allocations: 4.009 MB / 0.8002 GB, free: 29.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001453/1.24, allocations: 25.7 kB / 0.8002 GB, free: 29.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/1.241, allocations: 3.568 MB / 0.8037 GB, free: 26.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002096/1.243, allocations: 2.033 MB / 0.8057 GB, free: 24.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000943/1.244, allocations: 0 / 0.8057 GB, free: 24.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003543/1.244, allocations: 0.7133 MB / 0.8064 GB, free: 23.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00973/1.254, allocations: 8.59 MB / 0.8147 GB, free: 16.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01153/1.266, allocations: 12.77 MB / 0.8272 GB, free: 2.293 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.135/1.401, allocations: 11.24 MB / 0.8382 GB, free: 99.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-05/1.401, allocations: 39.25 kB / 0.8382 GB, free: 99.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.08486/1.486, allocations: 38.57 MB / 0.8759 GB, free: 99.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/1.486, allocations: 8 kB / 0.8759 GB, free: 99.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.486, allocations: 141.9 kB / 0.876 GB, free: 99.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.067/1.553, allocations: 20.87 MB / 0.8964 GB, free: 97.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004794/1.558, allocations: 1.476 MB / 0.8979 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2916/1.849, allocations: 126.3 MB / 1.021 GB, free: 92.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01025/1.86, allocations: 409.5 kB / 1.022 GB, free: 92.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002152/1.862, allocations: 0.5453 MB / 1.022 GB, free: 92.45 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (799): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.002342/1.864, allocations: 477.8 kB / 1.023 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/1.866, allocations: 0.5469 MB / 1.023 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07812/1.944, allocations: 35.08 MB / 1.057 GB, free: 82.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001461/1.944, allocations: 59.62 kB / 1.057 GB, free: 82.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001397/1.944, allocations: 65.41 kB / 1.057 GB, free: 82.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001363/1.944, allocations: 32.66 kB / 1.058 GB, free: 82.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1051/2.049, allocations: 55.08 MB / 1.111 GB, free: 44.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/2.049, allocations: 0 / 1.111 GB, free: 44.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/2.051, allocations: 265.3 kB / 1.112 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1733/2.224, allocations: 20.12 MB / 1.131 GB, free: 87.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001558/2.226, allocations: 9.219 kB / 1.131 GB, free: 87.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1563/2.382, allocations: 116.9 MB / 1.245 GB, free: 46.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/2.382, allocations: 0 / 1.245 GB, free: 46.58 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2151/2.597, allocations: 49.07 MB / 1.293 GB, free: 85.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/2.598, allocations: 0.5508 MB / 1.294 GB, free: 85.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001977/2.6, allocations: 3.75 kB / 1.294 GB, free: 85.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005752/2.606, allocations: 267.5 kB / 1.294 GB, free: 85.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.607, allocations: 273.3 kB / 1.294 GB, free: 85.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007444/2.608, allocations: 146.2 kB / 1.295 GB, free: 85.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003458/2.612, allocations: 2.756 MB / 1.297 GB, free: 85.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.011/2.623, allocations: 2.835 MB / 1.3 GB, free: 85.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009903/2.624, allocations: 141.7 kB / 1.3 GB, free: 85.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03236/2.656, allocations: 22.86 MB / 1.322 GB, free: 84.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/2.656, allocations: 0 / 1.322 GB, free: 84.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02138/2.677, allocations: 12.44 MB / 1.335 GB, free: 80.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/2.681, allocations: 0.5172 MB / 1.335 GB, free: 80.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04643/2.728, allocations: 21.39 MB / 1.356 GB, free: 73.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007378/2.735, allocations: 5.323 MB / 1.361 GB, free: 71.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/2.735, allocations: 3.719 kB / 1.361 GB, free: 71.59 MB / 426.7 MB Notification: Performance of Templates: time 0.5009/3.236, allocations: 211.6 MB / 1.568 GB, free: 90.62 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches