Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2_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.001538/0.001538, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001837/0.001837, allocations: 195 kB / 18 MB, free: 5.074 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.424/1.424, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001476/0.001476, allocations: 47.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2427/0.3552, allocations: 16.01 MB / 390.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.3688, allocations: 5.149 MB / 395.7 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004264/0.3731, allocations: 113 kB / 395.8 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009888/0.3831, allocations: 4.447 MB / 400.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.3957, allocations: 2.538 MB / 402.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003996/0.3998, allocations: 1.164 MB / 403.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01414/0.4139, allocations: 7.496 MB / 411.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008248/0.4222, allocations: 5.337 MB / 416.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006554/0.4288, allocations: 2.484 MB / 419.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006777/0.4356, allocations: 3.384 MB / 422.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002006/0.4377, allocations: 0.5039 MB / 423.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005303/0.443, allocations: 1.483 MB / 424.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005358/0.4484, allocations: 2.969 MB / 427.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006018/0.4544, allocations: 3.36 MB / 430.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4683, allocations: 10.41 MB / 441.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4684, allocations: 0 / 441.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4684, allocations: 0 / 441.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003902/0.4688, allocations: 0 / 441.3 MB, free: 12.5 MB / 366.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.02309/0.4919, allocations: 7.817 MB / 449.2 MB, free: 4.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.492, allocations: 16.03 kB / 449.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01478/0.5068, allocations: 3.226 MB / 452.4 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01334/0.5202, allocations: 5.003 MB / 457.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003145/0.5205, allocations: 341.2 kB / 457.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002467/0.523, allocations: 471.5 kB / 458.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02889/0.5519, allocations: 14.56 MB / 472.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002703/0.5522, allocations: 87.39 kB / 472.8 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008399/0.5531, allocations: 207.8 kB / 473 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00554/0.5586, allocations: 2.832 MB / 475.9 MB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02904/0.5877, allocations: 13.22 MB / 489.1 MB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08866/0.6764, allocations: 58.38 MB / 0.5346 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01873/0.6952, allocations: 7.727 MB / 0.5422 GB, free: 7.805 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007124/0.7024, allocations: 5.056 MB / 0.5471 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.317/1.019, allocations: 12.81 MB / 0.5596 GB, free: 145.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.02, allocations: 75.91 kB / 0.5597 GB, free: 145.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.152e-06/1.02, allocations: 0 / 0.5597 GB, free: 145.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.139/3.158, allocations: 411.9 MB / 0.9619 GB, free: 132 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/3.159, allocations: 262.7 kB / 0.9622 GB, free: 131.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00735/3.166, allocations: 5.501 MB / 0.9675 GB, free: 128.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00216/3.168, allocations: 113.7 kB / 0.9676 GB, free: 128.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002606/3.171, allocations: 4.085 MB / 0.9716 GB, free: 125.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003392/3.174, allocations: 2.112 MB / 0.9737 GB, free: 123.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004185/3.178, allocations: 2.187 MB / 0.9758 GB, free: 121.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.152e-05/3.178, allocations: 304.8 kB / 0.9761 GB, free: 120.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/3.191, allocations: 11.06 MB / 0.9869 GB, free: 109.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01811/3.209, allocations: 15.24 MB / 1.002 GB, free: 92.63 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03146/3.241, allocations: 27.45 MB / 1.029 GB, free: 63.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001796/3.241, allocations: 44 kB / 1.029 GB, free: 63.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6467/3.888, allocations: 141.1 MB / 1.166 GB, free: 101.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/3.888, allocations: 64 kB / 1.166 GB, free: 101.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/3.888, allocations: 143.4 kB / 1.167 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07785/3.966, allocations: 34.68 MB / 1.2 GB, free: 67.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004833/3.971, allocations: 1.569 MB / 1.202 GB, free: 66.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5096/4.48, allocations: 203.7 MB / 1.401 GB, free: 65.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.014/4.494, allocations: 1.71 MB / 1.403 GB, free: 64.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002904/4.497, allocations: 0.5427 MB / 1.403 GB, free: 63.51 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.008487/4.506, allocations: 3.095 MB / 1.406 GB, free: 60.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003328/4.509, allocations: 0.6098 MB / 1.407 GB, free: 60.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5904/5.1, allocations: 136.7 MB / 1.54 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-05/5.1, allocations: 56 kB / 1.54 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001836/5.1, allocations: 60 kB / 1.54 GB, free: 108.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001311/5.1, allocations: 31.83 kB / 1.54 GB, free: 108.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5957/5.696, allocations: 206 MB / 1.741 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.491e-05/5.696, allocations: 8 kB / 1.741 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/5.697, allocations: 329.1 kB / 1.742 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07116/5.768, allocations: 33.42 MB / 1.774 GB, free: 90.87 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001476/5.77, allocations: 104 kB / 1.775 GB, free: 90.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4533/6.223, allocations: 186.3 MB / 1.956 GB, free: 94.45 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/6.223, allocations: 11.09 kB / 1.956 GB, free: 94.44 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5777/6.801, allocations: 152.6 MB / 2.105 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008451/6.81, allocations: 3.04 MB / 2.108 GB, free: 127 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003435/6.813, allocations: 101.1 kB / 2.109 GB, free: 127 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01056/6.824, allocations: 1.48 MB / 2.11 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004378/6.828, allocations: 0.4941 MB / 2.11 GB, free: 125.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001032/6.829, allocations: 146 kB / 2.111 GB, free: 125.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005352/6.834, allocations: 3.502 MB / 2.114 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/6.834, allocations: 0 / 2.114 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01821/6.853, allocations: 3.861 MB / 2.118 GB, free: 119.1 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.002035/6.855, allocations: 243.7 kB / 2.118 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05543/6.91, allocations: 33.85 MB / 2.151 GB, free: 85.35 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/6.91, allocations: 3.312 kB / 2.151 GB, free: 85.35 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03916/6.949, allocations: 20.58 MB / 2.171 GB, free: 64.81 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008967/6.958, allocations: 0.7958 MB / 2.172 GB, free: 64.05 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04214/7.001, allocations: 27.37 MB / 2.199 GB, free: 36.68 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007277/7.008, allocations: 5.112 MB / 2.204 GB, free: 31.56 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004895/7.013, allocations: 2.057 MB / 2.206 GB, free: 29.54 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/7.014, allocations: 307.4 kB / 2.206 GB, free: 29.23 MB / 0.5137 GB Notification: Performance of SimCode: time 1.352e-06/7.014, allocations: 0 / 2.206 GB, free: 29.23 MB / 0.5137 GB Notification: Performance of Templates: time 0.9361/7.95, allocations: 276.7 MB / 2.476 GB, free: 134 MB / 0.5294 GB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)