Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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 3.2.1+maint.om/package.mo): time 0.003971/0.003971, allocations: 186.8 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.439/1.439, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00191/0.00191, allocations: 115.8 kB / 217.7 MB, free: 8.191 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.273e-06/7.303e-06, allocations: 0 / 261.7 MB, free: 26.61 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09566, allocations: 38.77 MB / 300.5 MB, free: 3.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3126/0.4083, allocations: 82.27 MB / 382.8 MB, free: 2.355 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.4087, allocations: 81.52 kB / 382.9 MB, free: 2.312 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.628/1.037, allocations: 118.2 MB / 0.4893 GB, free: 67.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005325/1.037, allocations: 118.6 kB / 0.4894 GB, free: 67.36 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.0243/1.062, allocations: 6.437 MB / 0.4957 GB, free: 64.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/1.062, allocations: 15.25 kB / 0.4957 GB, free: 64.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03526/1.097, allocations: 9.008 MB / 0.5045 GB, free: 64.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02272/1.12, allocations: 8.638 MB / 0.5129 GB, free: 63.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/1.12, allocations: 180.9 kB / 0.5131 GB, free: 63.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003328/1.124, allocations: 343.6 kB / 0.5134 GB, free: 63.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02179/1.145, allocations: 9.171 MB / 0.5224 GB, free: 61.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03947/1.185, allocations: 13.3 MB / 0.5354 GB, free: 50.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006777/1.186, allocations: 93.34 kB / 0.5355 GB, free: 50.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003508/1.189, allocations: 36 kB / 0.5355 GB, free: 50.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002534/1.192, allocations: 1.539 MB / 0.537 GB, free: 49.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08801/1.28, allocations: 64.43 MB / 0.5999 GB, free: 288 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1994/1.479, allocations: 7.161 MB / 0.6069 GB, free: 111.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006963/1.486, allocations: 5.512 MB / 0.6123 GB, free: 111.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02168/1.508, allocations: 14.16 MB / 0.6261 GB, free: 109.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/1.508, allocations: 65.78 kB / 0.6262 GB, free: 109.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 8.726e-06/1.508, allocations: 3.094 kB / 0.6262 GB, free: 109.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.1889/1.697, allocations: 72.71 MB / 0.6972 GB, free: 68.72 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/1.697, allocations: 267.2 kB / 0.6974 GB, free: 68.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00745/1.705, allocations: 4.037 MB / 0.7014 GB, free: 64.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002357/1.707, allocations: 27.23 kB / 0.7014 GB, free: 64.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001885/1.709, allocations: 3.556 MB / 0.7049 GB, free: 61.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003256/1.712, allocations: 2.029 MB / 0.7069 GB, free: 59.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/1.713, allocations: 2.531 kB / 0.7069 GB, free: 59.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005319/1.714, allocations: 0.7217 MB / 0.7076 GB, free: 59.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/1.725, allocations: 8.578 MB / 0.7159 GB, free: 51.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01653/1.741, allocations: 12.75 MB / 0.7284 GB, free: 36.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/1.756, allocations: 10.58 MB / 0.7387 GB, free: 26.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.844e-05/1.756, allocations: 44 kB / 0.7388 GB, free: 26.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=1257) (initialization): time 0.288/2.044, allocations: 38.55 MB / 0.7764 GB, free: 99.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/2.044, allocations: 6.469 kB / 0.7764 GB, free: 99.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002719/2.045, allocations: 143.1 kB / 0.7766 GB, free: 99.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06919/2.114, allocations: 20.88 MB / 0.7969 GB, free: 95.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006322/2.12, allocations: 1.464 MB / 0.7984 GB, free: 94.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3944/2.515, allocations: 126.3 MB / 0.9217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01493/2.53, allocations: 409.5 kB / 0.9221 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004255/2.534, allocations: 0.5436 MB / 0.9226 GB, free: 83.52 MB / 362.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: 649 * Number of states: 0 () * Number of discrete variables: 51 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (796): * Single equations (assignments): 789 * 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.004558/2.538, allocations: 479.2 kB / 0.9231 GB, free: 83.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002089/2.541, allocations: 0.5457 MB / 0.9236 GB, free: 83.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08019/2.621, allocations: 35.08 MB / 0.9579 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001638/2.621, allocations: 62.41 kB / 0.9579 GB, free: 68.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001197/2.621, allocations: 65.5 kB / 0.958 GB, free: 68.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001517/2.621, allocations: 31.17 kB / 0.958 GB, free: 68.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2852/2.906, allocations: 55.09 MB / 1.012 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.24e-05/2.907, allocations: 0 / 1.012 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/2.908, allocations: 267.9 kB / 1.012 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06342/2.972, allocations: 20.12 MB / 1.032 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002607/2.974, allocations: 11.56 kB / 1.032 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3664/3.341, allocations: 116.9 MB / 1.146 GB, free: 85.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/3.341, allocations: 5.031 kB / 1.146 GB, free: 85.08 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09506/3.436, allocations: 47.81 MB / 1.193 GB, free: 76.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007396/3.443, allocations: 2.343 MB / 1.195 GB, free: 75.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003144/3.447, allocations: 0 / 1.195 GB, free: 75.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008215/3.455, allocations: 270.7 kB / 1.195 GB, free: 75.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002722/3.458, allocations: 273.2 kB / 1.195 GB, free: 75.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001261/3.459, allocations: 141 kB / 1.196 GB, free: 75.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.005345/3.464, allocations: 2.782 MB / 1.198 GB, free: 74.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01818/3.482, allocations: 2.834 MB / 1.201 GB, free: 74.19 MB / 362.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.002483/3.485, allocations: 153.1 kB / 1.201 GB, free: 74.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.03939/3.524, allocations: 22.86 MB / 1.224 GB, free: 55.4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/3.524, allocations: 4 kB / 1.224 GB, free: 55.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02637/3.551, allocations: 12.42 MB / 1.236 GB, free: 44.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005666/3.557, allocations: 0.5154 MB / 1.236 GB, free: 43.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05663/3.613, allocations: 21.42 MB / 1.257 GB, free: 24.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2485/3.862, allocations: 5.458 MB / 1.262 GB, free: 82.47 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/3.862, allocations: 0 / 1.262 GB, free: 82.47 MB / 362.7 MB Notification: Performance of Templates: time 0.5415/4.403, allocations: 211.5 MB / 1.469 GB, free: 35.48 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)