Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001122/0.001122, allocations: 196.1 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009431/0.0009431, allocations: 92.33 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.663e-06/6.773e-06, allocations: 0 / 343.1 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 51.48 MB / 394.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/0.3917, allocations: 95.71 MB / 490.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.3919, allocations: 84.27 kB / 490.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4946/0.8866, allocations: 124.4 MB / 0.6004 GB, free: 74.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003807/0.887, allocations: 124.2 kB / 0.6006 GB, free: 74.16 MB / 442.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.02149/0.9085, allocations: 6.562 MB / 0.607 GB, free: 71.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.9086, allocations: 7.281 kB / 0.607 GB, free: 71.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03465/0.9432, allocations: 9.104 MB / 0.6159 GB, free: 71.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/0.9604, allocations: 7.383 MB / 0.6231 GB, free: 70.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.9607, allocations: 186.1 kB / 0.6233 GB, free: 70.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002384/0.9631, allocations: 346.8 kB / 0.6236 GB, free: 70.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01635/0.9795, allocations: 9.193 MB / 0.6326 GB, free: 69.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02932/1.009, allocations: 13.33 MB / 0.6456 GB, free: 63.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004398/1.009, allocations: 86.19 kB / 0.6457 GB, free: 63.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001653/1.011, allocations: 34.78 kB / 0.6457 GB, free: 63.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002225/1.013, allocations: 1.545 MB / 0.6472 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07751/1.091, allocations: 64.52 MB / 0.7102 GB, free: 17.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008606/1.099, allocations: 7.174 MB / 0.7172 GB, free: 12.51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006188/1.106, allocations: 5.511 MB / 0.7226 GB, free: 7.438 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02619/1.132, allocations: 14.32 MB / 0.7366 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/1.132, allocations: 68.75 kB / 0.7366 GB, free: 11.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 6.703e-06/1.132, allocations: 0 / 0.7366 GB, free: 11.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.3409/1.473, allocations: 72.52 MB / 0.8075 GB, free: 128 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/1.473, allocations: 275.8 kB / 0.8077 GB, free: 127.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00819/1.481, allocations: 4.013 MB / 0.8116 GB, free: 126.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002376/1.484, allocations: 29.61 kB / 0.8117 GB, free: 126.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002348/1.486, allocations: 3.56 MB / 0.8152 GB, free: 123.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002923/1.489, allocations: 2.036 MB / 0.8171 GB, free: 122.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/1.49, allocations: 0 / 0.8171 GB, free: 122.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004222/1.491, allocations: 0.7198 MB / 0.8178 GB, free: 121.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01027/1.501, allocations: 8.577 MB / 0.8262 GB, free: 118.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01327/1.514, allocations: 12.77 MB / 0.8387 GB, free: 109.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/1.528, allocations: 10.58 MB / 0.849 GB, free: 104.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/1.528, allocations: 40 kB / 0.8491 GB, free: 104 MB / 458.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.09034/1.618, allocations: 38.57 MB / 0.8867 GB, free: 74.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.618, allocations: 4 kB / 0.8867 GB, free: 74.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/1.619, allocations: 144 kB / 0.8869 GB, free: 74.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06469/1.683, allocations: 20.87 MB / 0.9072 GB, free: 53.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00499/1.688, allocations: 1.478 MB / 0.9087 GB, free: 52.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3265/2.015, allocations: 126.3 MB / 1.032 GB, free: 90.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/2.028, allocations: 408.5 kB / 1.032 GB, free: 90.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002955/2.031, allocations: 0.5442 MB / 1.033 GB, free: 89.84 MB / 458.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.00307/2.034, allocations: 493.5 kB / 1.033 GB, free: 89.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/2.036, allocations: 0.5456 MB / 1.034 GB, free: 89.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08606/2.122, allocations: 35.07 MB / 1.068 GB, free: 62.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001382/2.122, allocations: 62.95 kB / 1.068 GB, free: 62.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001323/2.122, allocations: 64 kB / 1.068 GB, free: 62.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000136/2.122, allocations: 28.5 kB / 1.068 GB, free: 62.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2515/2.374, allocations: 55.08 MB / 1.122 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.041e-05/2.374, allocations: 6.781 kB / 1.122 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/2.375, allocations: 262.9 kB / 1.122 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06098/2.436, allocations: 20.12 MB / 1.142 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001835/2.438, allocations: 14.48 kB / 1.142 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1629/2.601, allocations: 116.9 MB / 1.256 GB, free: 49.78 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/2.601, allocations: 0 / 1.256 GB, free: 49.78 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2174/2.819, allocations: 47.81 MB / 1.303 GB, free: 109.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/2.82, allocations: 0.5557 MB / 1.303 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002427/2.823, allocations: 3.125 kB / 1.303 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006389/2.829, allocations: 269.9 kB / 1.304 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001496/2.83, allocations: 274.2 kB / 1.304 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007763/2.831, allocations: 139.5 kB / 1.304 GB, free: 109.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003937/2.835, allocations: 2.758 MB / 1.307 GB, free: 108.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0135/2.849, allocations: 2.838 MB / 1.31 GB, free: 108.9 MB / 458.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.001517/2.85, allocations: 152.9 kB / 1.31 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03517/2.885, allocations: 22.87 MB / 1.332 GB, free: 104.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.377e-05/2.885, allocations: 0 / 1.332 GB, free: 104.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02081/2.906, allocations: 12.42 MB / 1.344 GB, free: 99.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/2.911, allocations: 0.5299 MB / 1.345 GB, free: 99.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05319/2.964, allocations: 21.38 MB / 1.366 GB, free: 91.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01066/2.975, allocations: 5.326 MB / 1.371 GB, free: 90.28 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/2.975, allocations: 0 / 1.371 GB, free: 90.28 MB / 458.7 MB Notification: Performance of Templates: time 0.434/3.409, allocations: 211.6 MB / 1.577 GB, free: 52.79 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches