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.001015/0.001016, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008045/0.008045, allocations: 172.3 kB / 16.26 MB, free: 6.676 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.501/1.501, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0006942/0.0006944, allocations: 16.52 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2799, allocations: 47.58 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06639/0.3464, allocations: 73.62 MB / 400.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04219/0.3886, allocations: 14.91 MB / 415.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0188/0.4075, allocations: 335.1 kB / 415.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003146/0.4107, allocations: 0.5945 MB / 416.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007942/0.4187, allocations: 2.394 MB / 418.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002889/0.4216, allocations: 1.065 MB / 419.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.436, allocations: 10.51 MB / 430.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01164/0.4477, allocations: 7.395 MB / 437.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004145/0.4519, allocations: 1.879 MB / 439.7 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005321/0.4573, allocations: 3.192 MB / 442.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.4584, allocations: 220 kB / 443.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.4614, allocations: 1.26 MB / 444.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00282/0.4643, allocations: 2.649 MB / 447 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003554/0.4678, allocations: 2.986 MB / 450 MB, free: 7.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2317/0.6996, allocations: 9.658 MB / 459.7 MB, free: 19.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.6996, allocations: 0.5 kB / 459.7 MB, free: 19.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6996, allocations: 0 / 459.7 MB, free: 19.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003539/0.7, allocations: 0.75 kB / 459.7 MB, free: 19.21 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.01497/0.715, allocations: 6.313 MB / 466 MB, free: 16.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.715, allocations: 9.625 kB / 466 MB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.7299, allocations: 3.246 MB / 469.3 MB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01197/0.7419, allocations: 4.883 MB / 474.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003677/0.7423, allocations: 339.4 kB / 474.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.7443, allocations: 460.2 kB / 474.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02529/0.7696, allocations: 14.59 MB / 489.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001812/0.7698, allocations: 75.81 kB / 489.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005983/0.7705, allocations: 209.2 kB / 489.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005204/0.7757, allocations: 2.839 MB / 492.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02501/0.8007, allocations: 13.25 MB / 0.494 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07694/0.8777, allocations: 58.52 MB / 0.5512 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01875/0.8965, allocations: 7.754 MB / 0.5587 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006644/0.9032, allocations: 5.051 MB / 0.5637 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01972/0.9229, allocations: 12.8 MB / 0.5762 GB, free: 2.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.446e-05/0.923, allocations: 65.58 kB / 0.5762 GB, free: 1.945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.22e-06/0.923, allocations: 0 / 0.5762 GB, free: 1.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.159/3.082, allocations: 407.3 MB / 0.974 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/3.082, allocations: 262.7 kB / 0.9742 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007071/3.089, allocations: 5.5 MB / 0.9796 GB, free: 108.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.00232/3.091, allocations: 114.7 kB / 0.9797 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002352/3.093, allocations: 3.933 MB / 0.9835 GB, free: 104 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.003048/3.097, allocations: 2.011 MB / 0.9855 GB, free: 102 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/3.098, allocations: 0.8281 MB / 0.9863 GB, free: 101.2 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.411e-05/3.098, allocations: 309.1 kB / 0.9866 GB, free: 100.9 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01288/3.111, allocations: 11.06 MB / 0.9974 GB, free: 89.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0184/3.13, allocations: 15.24 MB / 1.012 GB, free: 72.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03105/3.161, allocations: 27.45 MB / 1.039 GB, free: 43.36 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/3.161, allocations: 40 kB / 1.039 GB, free: 43.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6029/3.764, allocations: 141.1 MB / 1.177 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.343e-05/3.764, allocations: 65.09 kB / 1.177 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/3.764, allocations: 141.8 kB / 1.177 GB, free: 117.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07823/3.842, allocations: 34.76 MB / 1.211 GB, free: 82.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005268/3.848, allocations: 1.568 MB / 1.213 GB, free: 80.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5344/4.382, allocations: 190.8 MB / 1.399 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01558/4.398, allocations: 1.722 MB / 1.401 GB, free: 103.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00332/4.401, allocations: 0.5387 MB / 1.401 GB, free: 103 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.008363/4.41, allocations: 3.097 MB / 1.404 GB, free: 100 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002217/4.412, allocations: 0.5752 MB / 1.405 GB, free: 99.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5849/4.997, allocations: 136.7 MB / 1.538 GB, free: 173.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000117/4.997, allocations: 61.5 kB / 1.538 GB, free: 173.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001759/4.997, allocations: 56 kB / 1.538 GB, free: 173.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001353/4.997, allocations: 31.89 kB / 1.538 GB, free: 173.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7456/5.743, allocations: 206.2 MB / 1.74 GB, free: 174.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.793e-05/5.743, allocations: 7.812 kB / 1.74 GB, free: 174.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/5.744, allocations: 328.5 kB / 1.74 GB, free: 174.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08115/5.826, allocations: 33.92 MB / 1.773 GB, free: 163.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002046/5.828, allocations: 105.2 kB / 1.773 GB, free: 163.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4701/6.298, allocations: 173.5 MB / 1.943 GB, free: 175 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.445e-06/6.298, allocations: 9.5 kB / 1.943 GB, free: 175 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.341/6.639, allocations: 152.5 MB / 2.092 GB, free: 38.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007087/6.646, allocations: 3.014 MB / 2.095 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002799/6.649, allocations: 101.2 kB / 2.095 GB, free: 35.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2532/6.902, allocations: 1.481 MB / 2.096 GB, free: 185.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004625/6.907, allocations: 0.4896 MB / 2.097 GB, free: 185.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001421/6.908, allocations: 148 kB / 2.097 GB, free: 185.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006602/6.915, allocations: 3.504 MB / 2.1 GB, free: 185.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.01e-07/6.915, allocations: 0 / 2.1 GB, free: 185.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01776/6.933, allocations: 3.856 MB / 2.104 GB, free: 185.3 MB / 0.4981 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.002463/6.935, allocations: 244.7 kB / 2.104 GB, free: 185.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.05736/6.992, allocations: 33.71 MB / 2.137 GB, free: 180.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/6.993, allocations: 3.344 kB / 2.137 GB, free: 180.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.04113/7.034, allocations: 20.5 MB / 2.157 GB, free: 166.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01238/7.046, allocations: 0.7543 MB / 2.158 GB, free: 166 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04134/7.087, allocations: 30.51 MB / 2.188 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00691/7.094, allocations: 5.116 MB / 2.193 GB, free: 134.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005174/7.1, allocations: 2.055 MB / 2.195 GB, free: 132.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/7.101, allocations: 307.4 kB / 2.195 GB, free: 132.5 MB / 0.4981 GB Notification: Performance of SimCode: time 8.02e-07/7.101, allocations: 0 / 2.195 GB, free: 132.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.6056/7.706, allocations: 262.2 MB / 2.451 GB, free: 52.33 MB / 0.4981 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)