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.001069/0.001069, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001421/0.001421, allocations: 191.7 kB / 16.14 MB, free: 6.715 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.491/1.491, allocations: 205.1 MB / 222 MB, free: 4.762 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.001136/0.001137, allocations: 51.92 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2949, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0663/0.3613, allocations: 75.44 MB / 400.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03542/0.3967, allocations: 14.96 MB / 415.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01732/0.4141, allocations: 343.1 kB / 415.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008337/0.4225, allocations: 4.434 MB / 419.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007387/0.4299, allocations: 2.39 MB / 422.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.4328, allocations: 1.065 MB / 423.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.4472, allocations: 10.51 MB / 433.8 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008214/0.4555, allocations: 5.207 MB / 439 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004865/0.4604, allocations: 2.215 MB / 441.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006334/0.4667, allocations: 3.61 MB / 444.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001933/0.4687, allocations: 352 kB / 445.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004221/0.4729, allocations: 1.404 MB / 446.6 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006198/0.4792, allocations: 2.844 MB / 449.4 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006741/0.486, allocations: 3.211 MB / 452.6 MB, free: 3.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.325/0.811, allocations: 9.939 MB / 462.6 MB, free: 19.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.811, allocations: 0 / 462.6 MB, free: 19.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8111, allocations: 0.8438 kB / 462.6 MB, free: 19.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006669/0.8117, allocations: 0 / 462.6 MB, free: 19.15 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.03275/0.8445, allocations: 7.631 MB / 470.2 MB, free: 16.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.8446, allocations: 8.719 kB / 470.2 MB, free: 16.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01722/0.8618, allocations: 3.187 MB / 473.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.8783, allocations: 4.88 MB / 478.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004161/0.8787, allocations: 341.2 kB / 478.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003767/0.8825, allocations: 465.3 kB / 479.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03752/0.92, allocations: 14.57 MB / 493.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000691/0.9208, allocations: 71.41 kB / 493.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003305/0.9241, allocations: 213 kB / 493.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005658/0.9298, allocations: 2.839 MB / 496.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03235/0.9622, allocations: 13.21 MB / 0.498 GB, free: 3.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1021/1.064, allocations: 58.55 MB / 0.5552 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01985/1.084, allocations: 7.732 MB / 0.5627 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007595/1.092, allocations: 5.049 MB / 0.5677 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02814/1.12, allocations: 12.81 MB / 0.5802 GB, free: 14.74 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.961e-05/1.12, allocations: 71.97 kB / 0.5803 GB, free: 14.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 7.925e-06/1.12, allocations: 1.641 kB / 0.5803 GB, free: 14.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.102/3.222, allocations: 411.5 MB / 0.9821 GB, free: 106.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/3.222, allocations: 271.9 kB / 0.9823 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01195/3.234, allocations: 5.492 MB / 0.9877 GB, free: 101.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.002656/3.237, allocations: 109.7 kB / 0.9878 GB, free: 101 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003021/3.24, allocations: 3.945 MB / 0.9917 GB, free: 97.12 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.004645/3.244, allocations: 2.004 MB / 0.9936 GB, free: 95.13 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00524/3.25, allocations: 2.186 MB / 0.9958 GB, free: 92.94 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.629e-05/3.25, allocations: 309.1 kB / 0.996 GB, free: 92.64 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01359/3.263, allocations: 11.06 MB / 1.007 GB, free: 81.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01818/3.281, allocations: 15.23 MB / 1.022 GB, free: 64.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03561/3.317, allocations: 27.44 MB / 1.049 GB, free: 35.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002148/3.317, allocations: 40 kB / 1.049 GB, free: 35.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6035/3.921, allocations: 141.1 MB / 1.186 GB, free: 109.6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/3.921, allocations: 68 kB / 1.186 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/3.921, allocations: 137.9 kB / 1.187 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07917/4, allocations: 34.69 MB / 1.22 GB, free: 74.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005644/4.006, allocations: 1.567 MB / 1.222 GB, free: 73.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5459/4.552, allocations: 190.6 MB / 1.408 GB, free: 97.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01568/4.568, allocations: 1.715 MB / 1.41 GB, free: 95.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004218/4.572, allocations: 0.531 MB / 1.41 GB, free: 95.33 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.01165/4.584, allocations: 3.101 MB / 1.413 GB, free: 92.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003283/4.587, allocations: 0.5741 MB / 1.414 GB, free: 92.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5374/5.124, allocations: 136.7 MB / 1.547 GB, free: 166.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/5.125, allocations: 57.53 kB / 1.547 GB, free: 166.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002112/5.125, allocations: 62.38 kB / 1.547 GB, free: 166.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001603/5.125, allocations: 27.89 kB / 1.547 GB, free: 166.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6216/5.747, allocations: 206.2 MB / 1.749 GB, free: 175.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-05/5.747, allocations: 7.875 kB / 1.749 GB, free: 175.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/5.748, allocations: 328.8 kB / 1.749 GB, free: 175.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07443/5.823, allocations: 33.85 MB / 1.782 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002449/5.825, allocations: 96 kB / 1.782 GB, free: 156.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4953/6.321, allocations: 173.4 MB / 1.952 GB, free: 174.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/6.321, allocations: 14.22 kB / 1.952 GB, free: 174.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.509/6.83, allocations: 152.5 MB / 2.101 GB, free: 176.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007897/6.838, allocations: 3.014 MB / 2.104 GB, free: 176.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003148/6.841, allocations: 99.97 kB / 2.104 GB, free: 176.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009783/6.851, allocations: 1.485 MB / 2.105 GB, free: 176.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004335/6.855, allocations: 0.4946 MB / 2.106 GB, free: 176.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001249/6.856, allocations: 143.5 kB / 2.106 GB, free: 176.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005553/6.862, allocations: 3.499 MB / 2.109 GB, free: 176.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.3e-07/6.862, allocations: 0 / 2.109 GB, free: 176.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01438/6.876, allocations: 3.862 MB / 2.113 GB, free: 176.6 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.001914/6.878, allocations: 246.2 kB / 2.113 GB, free: 176.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.05609/6.934, allocations: 33.7 MB / 2.146 GB, free: 168.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/6.934, allocations: 0 / 2.146 GB, free: 168.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.03806/6.972, allocations: 20.51 MB / 2.166 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007223/6.98, allocations: 0.7509 MB / 2.167 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03859/7.018, allocations: 30.49 MB / 2.197 GB, free: 127 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005732/7.024, allocations: 5.122 MB / 2.202 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005077/7.029, allocations: 2.051 MB / 2.204 GB, free: 121.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000928/7.03, allocations: 309.9 kB / 2.204 GB, free: 121.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.683e-06/7.03, allocations: 3.938 kB / 2.204 GB, free: 121.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.5128/7.543, allocations: 270.2 MB / 2.468 GB, free: 38.92 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)