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.00106/0.00106, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.00105/0.00105, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.366/1.366, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001225/0.001224, allocations: 51.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 46.62 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2698/0.3725, allocations: 75.44 MB / 401.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04191/0.4145, allocations: 14.87 MB / 416.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02048/0.435, allocations: 337 kB / 416.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008272/0.4434, allocations: 4.285 MB / 421.1 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008891/0.4523, allocations: 2.362 MB / 423.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00354/0.4559, allocations: 1.091 MB / 424.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.4685, allocations: 7.823 MB / 432.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008415/0.477, allocations: 5.606 MB / 437.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005705/0.4827, allocations: 2.545 MB / 440.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006129/0.4889, allocations: 3.753 MB / 444.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001866/0.4908, allocations: 0.5078 MB / 444.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003889/0.4947, allocations: 1.501 MB / 446.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003576/0.4983, allocations: 3.004 MB / 449.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00538/0.5037, allocations: 3.391 MB / 452.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.5169, allocations: 10.14 MB / 462.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.517, allocations: 0 / 462.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.517, allocations: 0 / 462.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003857/0.5174, allocations: 0 / 462.8 MB, free: 12.22 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.02336/0.5408, allocations: 7.627 MB / 470.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.36e-05/0.5409, allocations: 8.031 kB / 470.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/0.5572, allocations: 3.182 MB / 473.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.5694, allocations: 4.882 MB / 478.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004198/0.5699, allocations: 340.1 kB / 478.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002763/0.5727, allocations: 470.8 kB / 479.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03295/0.6056, allocations: 14.56 MB / 493.8 MB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002698/0.606, allocations: 79.27 kB / 493.9 MB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007852/0.6068, allocations: 212.9 kB / 494.1 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005633/0.6124, allocations: 2.831 MB / 496.9 MB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0292/0.6417, allocations: 13.22 MB / 0.4982 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.307/0.9487, allocations: 58.54 MB / 0.5554 GB, free: 130.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01666/0.9654, allocations: 7.737 MB / 0.5629 GB, free: 129.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004892/0.9704, allocations: 5.046 MB / 0.5679 GB, free: 127.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0171/0.9875, allocations: 12.8 MB / 0.5804 GB, free: 121.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.006e-05/0.9876, allocations: 77.03 kB / 0.5804 GB, free: 121.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 8.046e-06/0.9876, allocations: 2.812 kB / 0.5804 GB, free: 121.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.916/2.904, allocations: 411.5 MB / 0.9823 GB, free: 104.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/2.904, allocations: 271.3 kB / 0.9825 GB, free: 104.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006672/2.911, allocations: 5.492 MB / 0.9879 GB, free: 99.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002058/2.913, allocations: 113.7 kB / 0.988 GB, free: 99.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/2.915, allocations: 3.946 MB / 0.9918 GB, free: 95.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002632/2.918, allocations: 2.009 MB / 0.9938 GB, free: 93.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003912/2.921, allocations: 2.178 MB / 0.9959 GB, free: 91.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.085e-05/2.922, allocations: 307.5 kB / 0.9962 GB, free: 91.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01199/2.934, allocations: 11.06 MB / 1.007 GB, free: 80.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01446/2.948, allocations: 15.24 MB / 1.022 GB, free: 63.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02951/2.978, allocations: 27.45 MB / 1.049 GB, free: 33.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/2.978, allocations: 40 kB / 1.049 GB, free: 33.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.519/3.497, allocations: 141.1 MB / 1.187 GB, free: 61.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.982e-05/3.497, allocations: 64.62 kB / 1.187 GB, free: 61.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001652/3.497, allocations: 136 kB / 1.187 GB, free: 61.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0737/3.571, allocations: 34.73 MB / 1.221 GB, free: 26.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004958/3.576, allocations: 1.567 MB / 1.222 GB, free: 25.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6457/4.222, allocations: 203.6 MB / 1.421 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0132/4.235, allocations: 1.717 MB / 1.423 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002363/4.237, allocations: 0.5365 MB / 1.423 GB, free: 129.2 MB / 462.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 (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.006606/4.244, allocations: 3.103 MB / 1.426 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/4.246, allocations: 0.5731 MB / 1.427 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5443/4.79, allocations: 136.7 MB / 1.56 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001708/4.79, allocations: 57.7 kB / 1.56 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002733/4.791, allocations: 59.66 kB / 1.56 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001687/4.791, allocations: 28.42 kB / 1.56 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5817/5.373, allocations: 206.2 MB / 1.762 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-05/5.373, allocations: 9.719 kB / 1.762 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/5.374, allocations: 331.5 kB / 1.762 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06915/5.443, allocations: 33.46 MB / 1.795 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002016/5.445, allocations: 99.98 kB / 1.795 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4407/5.886, allocations: 186.2 MB / 1.977 GB, free: 96.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/5.886, allocations: 10.81 kB / 1.977 GB, free: 96.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5206/6.407, allocations: 152.5 MB / 2.126 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007512/6.414, allocations: 3.018 MB / 2.129 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002844/6.417, allocations: 91.81 kB / 2.129 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009582/6.427, allocations: 1.487 MB / 2.13 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00462/6.432, allocations: 499.4 kB / 2.131 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001185/6.433, allocations: 142.7 kB / 2.131 GB, free: 100.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005204/6.438, allocations: 3.505 MB / 2.134 GB, free: 98.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.62e-07/6.438, allocations: 0 / 2.134 GB, free: 98.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01507/6.453, allocations: 3.863 MB / 2.138 GB, free: 94.72 MB / 462.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 (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.002129/6.455, allocations: 240.5 kB / 2.138 GB, free: 94.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0628/6.518, allocations: 38.85 MB / 2.176 GB, free: 55.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/6.518, allocations: 4 kB / 2.176 GB, free: 55.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03914/6.557, allocations: 20.55 MB / 2.196 GB, free: 35.22 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009492/6.567, allocations: 0.7918 MB / 2.197 GB, free: 34.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2626/6.829, allocations: 30.49 MB / 2.227 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01226/6.842, allocations: 5.119 MB / 2.232 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005978/6.848, allocations: 2.052 MB / 2.234 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/6.849, allocations: 316.3 kB / 2.234 GB, free: 125.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/6.849, allocations: 0 / 2.234 GB, free: 125.1 MB / 462.1 MB Notification: Performance of Templates: time 0.7343/7.583, allocations: 281 MB / 2.509 GB, free: 21.8 MB / 462.1 MB 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)