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.001013/0.001013, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001274/0.001274, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 222.1 MB, free: 5.312 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.0004932/0.0004933, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3134, allocations: 47.58 MB / 326.5 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.07046/0.3839, allocations: 68.43 MB / 394.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05054/0.4345, allocations: 14.31 MB / 409.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01843/0.453, allocations: 335.1 kB / 409.5 MB, free: 188 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01367/0.4667, allocations: 3.565 MB / 413.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03448/0.5013, allocations: 10.47 MB / 423.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00599/0.5073, allocations: 1.01 MB / 424.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3394/0.8467, allocations: 51.7 MB / 476.3 MB, free: 33.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009799/0.8566, allocations: 6.604 MB / 482.9 MB, free: 32.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004432/0.861, allocations: 2.033 MB / 484.9 MB, free: 32.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00523/0.8663, allocations: 3.165 MB / 488.1 MB, free: 32.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.8676, allocations: 218.6 kB / 488.3 MB, free: 32.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003267/0.8709, allocations: 1.095 MB / 489.4 MB, free: 32.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002666/0.8735, allocations: 2.611 MB / 492 MB, free: 31.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.8751, allocations: 1.216 MB / 493.2 MB, free: 31.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007055/0.8822, allocations: 7.956 MB / 0.4894 GB, free: 24.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.8822, allocations: 0 / 0.4894 GB, free: 24.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8822, allocations: 0 / 0.4894 GB, free: 24.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003013/0.8825, allocations: 0 / 0.4894 GB, free: 24.61 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.01348/0.896, allocations: 6.395 MB / 0.4957 GB, free: 18.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.8961, allocations: 12.03 kB / 0.4957 GB, free: 18.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01789/0.914, allocations: 3.247 MB / 0.4989 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01565/0.9297, allocations: 4.796 MB / 0.5035 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004307/0.9302, allocations: 338 kB / 0.5039 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002664/0.9329, allocations: 462.1 kB / 0.5043 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03868/0.9716, allocations: 14.56 MB / 0.5185 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003433/0.972, allocations: 72.17 kB / 0.5186 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001335/0.9733, allocations: 216.1 kB / 0.5188 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008294/0.9816, allocations: 2.831 MB / 0.5216 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0426/1.024, allocations: 13.19 MB / 0.5344 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1212/1.146, allocations: 58.51 MB / 0.5916 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02146/1.167, allocations: 7.719 MB / 0.5991 GB, free: 9.188 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007465/1.175, allocations: 5.039 MB / 0.6041 GB, free: 4.137 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02401/1.199, allocations: 12.8 MB / 0.6165 GB, free: 7.293 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.37e-05/1.199, allocations: 80.66 kB / 0.6166 GB, free: 7.203 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 7.825e-06/1.199, allocations: 0 / 0.6166 GB, free: 7.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.073/3.272, allocations: 407.2 MB / 1.014 GB, free: 178.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/3.272, allocations: 266.9 kB / 1.015 GB, free: 178.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00876/3.281, allocations: 5.464 MB / 1.02 GB, free: 176.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001709/3.283, allocations: 112.5 kB / 1.02 GB, free: 176.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002254/3.285, allocations: 3.937 MB / 1.024 GB, free: 173.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002888/3.288, allocations: 2.018 MB / 1.026 GB, free: 171.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/3.289, allocations: 191.6 kB / 1.026 GB, free: 171.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004388/3.289, allocations: 0.7165 MB / 1.027 GB, free: 170.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01425/3.304, allocations: 11.03 MB / 1.037 GB, free: 165.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02012/3.324, allocations: 15.19 MB / 1.052 GB, free: 152.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01692/3.341, allocations: 12.89 MB / 1.065 GB, free: 139.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001696/3.341, allocations: 40 kB / 1.065 GB, free: 139.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5121/3.853, allocations: 141 MB / 1.203 GB, free: 160 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/3.853, allocations: 63.88 kB / 1.203 GB, free: 160 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/3.854, allocations: 136 kB / 1.203 GB, free: 160 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07339/3.927, allocations: 34.81 MB / 1.237 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005685/3.933, allocations: 1.564 MB / 1.238 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4869/4.42, allocations: 190.5 MB / 1.424 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01359/4.433, allocations: 1.727 MB / 1.426 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003112/4.436, allocations: 0.5346 MB / 1.427 GB, free: 128.9 MB / 478.1 MB 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 (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 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.007801/4.444, allocations: 3.102 MB / 1.43 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001888/4.446, allocations: 0.5735 MB / 1.43 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5604/5.007, allocations: 136.6 MB / 1.564 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/5.007, allocations: 57.5 kB / 1.564 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003246/5.007, allocations: 58.94 kB / 1.564 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001759/5.007, allocations: 32.06 kB / 1.564 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6075/5.615, allocations: 206.1 MB / 1.765 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.77e-05/5.615, allocations: 5.969 kB / 1.765 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/5.616, allocations: 333 kB / 1.765 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07128/5.688, allocations: 33.9 MB / 1.798 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002527/5.69, allocations: 96.78 kB / 1.798 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4996/6.19, allocations: 173.4 MB / 1.968 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/6.19, allocations: 11.28 kB / 1.968 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5515/6.741, allocations: 152.5 MB / 2.117 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006794/6.748, allocations: 3.01 MB / 2.12 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00263/6.751, allocations: 100 kB / 2.12 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008902/6.76, allocations: 1.488 MB / 2.121 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00333/6.763, allocations: 0.4886 MB / 2.122 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000952/6.764, allocations: 138.7 kB / 2.122 GB, free: 126.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005069/6.769, allocations: 3.466 MB / 2.125 GB, free: 124.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/6.769, allocations: 0 / 2.125 GB, free: 124.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01465/6.784, allocations: 3.864 MB / 2.129 GB, free: 120.2 MB / 478.1 MB 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 (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 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.001716/6.786, allocations: 248.7 kB / 2.129 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05382/6.84, allocations: 33.68 MB / 2.162 GB, free: 86.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/6.84, allocations: 0 / 2.162 GB, free: 86.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03707/6.877, allocations: 20.48 MB / 2.182 GB, free: 65.86 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007637/6.884, allocations: 0.7537 MB / 2.183 GB, free: 65.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.276/7.16, allocations: 29.74 MB / 2.212 GB, free: 150.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01294/7.173, allocations: 5.114 MB / 2.217 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.009633/7.183, allocations: 2.062 MB / 2.219 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002106/7.185, allocations: 308 kB / 2.219 GB, free: 150 MB / 478.1 MB Notification: Performance of SimCode: time 1.603e-06/7.185, allocations: 0 / 2.219 GB, free: 150 MB / 478.1 MB Notification: Performance of Templates: time 0.6687/7.854, allocations: 257.3 MB / 2.47 GB, free: 84.2 MB / 478.1 MB 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)