Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008093/0.008093, allocations: 102.7 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 196.5 kB / 16.67 MB, free: 5.973 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.435/1.435, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.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.001162/0.001162, allocations: 50.64 kB / 326.5 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09668, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01482/0.1115, allocations: 16.02 MB / 389.2 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.1219, allocations: 5.14 MB / 394.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003022/0.125, allocations: 115.6 kB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009442/0.1345, allocations: 4.442 MB / 398.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009312/0.1438, allocations: 2.544 MB / 401.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003777/0.1477, allocations: 1.166 MB / 402.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01503/0.1627, allocations: 7.492 MB / 410.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008787/0.1715, allocations: 5.346 MB / 415.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00542/0.177, allocations: 2.488 MB / 417.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005449/0.1825, allocations: 3.369 MB / 421.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00183/0.1844, allocations: 0.5078 MB / 421.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.1882, allocations: 1.487 MB / 423.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004226/0.1924, allocations: 2.965 MB / 426.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006184/0.1986, allocations: 3.368 MB / 429.6 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.212, allocations: 10.37 MB / 440 MB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2121, allocations: 4 kB / 440 MB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2121, allocations: 0 / 440 MB, free: 14.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000384/0.2125, allocations: 0 / 440 MB, free: 14.22 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.0222/0.2347, allocations: 7.629 MB / 447.6 MB, free: 6.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.351e-05/0.2348, allocations: 8.031 kB / 447.6 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/0.2514, allocations: 3.19 MB / 450.8 MB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2237/0.4752, allocations: 4.981 MB / 455.8 MB, free: 64.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003645/0.4756, allocations: 339.7 kB / 456.1 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002138/0.4777, allocations: 464 kB / 456.6 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02891/0.5066, allocations: 14.56 MB / 471.1 MB, free: 58.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002106/0.5069, allocations: 72.67 kB / 471.2 MB, free: 58.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000673/0.5076, allocations: 212.8 kB / 471.4 MB, free: 58.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005138/0.5127, allocations: 2.835 MB / 474.3 MB, free: 57.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02411/0.5368, allocations: 13.22 MB / 487.5 MB, free: 45.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07075/0.6076, allocations: 58.29 MB / 0.533 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01909/0.6268, allocations: 7.716 MB / 0.5405 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006594/0.6334, allocations: 5.051 MB / 0.5454 GB, free: 5.191 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02155/0.655, allocations: 12.8 MB / 0.5579 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.234e-05/0.6551, allocations: 72.64 kB / 0.558 GB, free: 8.156 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 5.3e-06/0.6551, allocations: 3.938 kB / 0.558 GB, free: 8.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.212/2.867, allocations: 411.5 MB / 0.9599 GB, free: 34.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.595e-05/2.868, allocations: 269.6 kB / 0.9601 GB, free: 33.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007029/2.875, allocations: 5.507 MB / 0.9655 GB, free: 28.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002379/2.877, allocations: 118.9 kB / 0.9656 GB, free: 28.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/2.879, allocations: 3.93 MB / 0.9695 GB, free: 24.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002916/2.882, allocations: 2.015 MB / 0.9714 GB, free: 22.24 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004126/2.886, allocations: 2.174 MB / 0.9736 GB, free: 20.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.63e-05/2.886, allocations: 305.1 kB / 0.9738 GB, free: 19.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01346/2.9, allocations: 11.06 MB / 0.9846 GB, free: 8.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2731/3.173, allocations: 15.23 MB / 0.9995 GB, free: 142.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03534/3.208, allocations: 27.46 MB / 1.026 GB, free: 127.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001859/3.209, allocations: 40.25 kB / 1.026 GB, free: 127.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3261/3.535, allocations: 141.1 MB / 1.164 GB, free: 2.434 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.5e-05/3.535, allocations: 64 kB / 1.164 GB, free: 2.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/3.535, allocations: 140 kB / 1.164 GB, free: 2.234 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3625/3.897, allocations: 34.69 MB / 1.198 GB, free: 144.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005251/3.903, allocations: 1.565 MB / 1.2 GB, free: 144.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5598/4.463, allocations: 203.6 MB / 1.399 GB, free: 124 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01514/4.478, allocations: 1.72 MB / 1.4 GB, free: 123.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003214/4.481, allocations: 0.5421 MB / 1.401 GB, free: 123.8 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.008872/4.49, allocations: 3.095 MB / 1.404 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002416/4.492, allocations: 0.5731 MB / 1.404 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3174/4.81, allocations: 136.7 MB / 1.538 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001417/4.81, allocations: 56 kB / 1.538 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002338/4.81, allocations: 60 kB / 1.538 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001772/4.81, allocations: 31.83 kB / 1.538 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9291/5.739, allocations: 205.9 MB / 1.739 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.541e-05/5.74, allocations: 12.03 kB / 1.739 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/5.741, allocations: 333.7 kB / 1.739 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07709/5.818, allocations: 33.42 MB / 1.772 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001626/5.82, allocations: 104.3 kB / 1.772 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5125/6.333, allocations: 186.2 MB / 1.954 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/6.333, allocations: 10.56 kB / 1.954 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.349/6.682, allocations: 152.5 MB / 2.103 GB, free: 22.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008991/6.691, allocations: 3.012 MB / 2.106 GB, free: 19.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002811/6.694, allocations: 98.5 kB / 2.106 GB, free: 19.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009453/6.703, allocations: 1.488 MB / 2.107 GB, free: 18.25 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003641/6.707, allocations: 498.9 kB / 2.108 GB, free: 17.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007743/6.707, allocations: 144 kB / 2.108 GB, free: 17.62 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.2464/6.954, allocations: 3.498 MB / 2.111 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.162e-06/6.954, allocations: 0 / 2.111 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01906/6.973, allocations: 3.865 MB / 2.115 GB, free: 151.2 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001933/6.975, allocations: 239.5 kB / 2.115 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.06174/7.037, allocations: 33.81 MB / 2.148 GB, free: 149.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.917e-05/7.037, allocations: 0 / 2.148 GB, free: 149.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04233/7.079, allocations: 20.55 MB / 2.169 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009473/7.089, allocations: 0.7872 MB / 2.169 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04555/7.134, allocations: 27.13 MB / 2.196 GB, free: 116.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008155/7.142, allocations: 5.117 MB / 2.201 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005177/7.148, allocations: 2.064 MB / 2.203 GB, free: 111.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008765/7.149, allocations: 307 kB / 2.203 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.533e-06/7.149, allocations: 0 / 2.203 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.6343/7.783, allocations: 276.7 MB / 2.473 GB, free: 10.24 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)