Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008087/0.008087, allocations: 102.6 kB / 15.73 MB, free: 6.039 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.002127/0.002127, allocations: 198.1 kB / 16.67 MB, free: 5.973 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.44/1.44, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.002041/0.002041, allocations: 61.88 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1101, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01606/0.1263, allocations: 16.01 MB / 389.2 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.1379, allocations: 5.136 MB / 394.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003878/0.1419, allocations: 115.6 kB / 394.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008712/0.1507, allocations: 4.458 MB / 398.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007994/0.1587, allocations: 2.618 MB / 401.5 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003032/0.1618, allocations: 1.154 MB / 402.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.1738, allocations: 7.503 MB / 410.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00752/0.1813, allocations: 5.338 MB / 415.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005182/0.1866, allocations: 2.496 MB / 418 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005859/0.1925, allocations: 3.38 MB / 421.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002094/0.1946, allocations: 0.5039 MB / 421.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004103/0.1987, allocations: 1.494 MB / 423.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003598/0.2024, allocations: 3.008 MB / 426.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004782/0.2072, allocations: 3.364 MB / 429.8 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.2213, allocations: 10.37 MB / 440.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.2213, allocations: 0 / 440.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2213, allocations: 0 / 440.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004005/0.2217, allocations: 4 kB / 440.1 MB, free: 14.07 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.02302/0.2448, allocations: 7.629 MB / 447.8 MB, free: 6.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.2448, allocations: 8.031 kB / 447.8 MB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/0.2611, allocations: 3.186 MB / 451 MB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2756/0.5368, allocations: 4.981 MB / 455.9 MB, free: 64.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.5371, allocations: 341.8 kB / 456.3 MB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.5383, allocations: 464.3 kB / 456.7 MB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02627/0.5646, allocations: 14.56 MB / 471.3 MB, free: 58.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001793/0.5648, allocations: 74.72 kB / 471.4 MB, free: 58.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005355/0.5654, allocations: 212.7 kB / 471.6 MB, free: 58.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004893/0.5703, allocations: 2.835 MB / 474.4 MB, free: 57.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02168/0.5919, allocations: 13.22 MB / 487.6 MB, free: 45.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06269/0.6547, allocations: 58.27 MB / 0.5331 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/0.6734, allocations: 7.728 MB / 0.5407 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006626/0.68, allocations: 5.049 MB / 0.5456 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02003/0.7001, allocations: 12.81 MB / 0.5581 GB, free: 8.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.191e-05/0.7002, allocations: 72.58 kB / 0.5582 GB, free: 7.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 5.621e-06/0.7002, allocations: 0.6562 kB / 0.5582 GB, free: 7.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.16/2.861, allocations: 411.5 MB / 0.96 GB, free: 34.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/2.861, allocations: 275.6 kB / 0.9603 GB, free: 33.74 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006943/2.868, allocations: 5.502 MB / 0.9656 GB, free: 28.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001932/2.87, allocations: 110.6 kB / 0.9658 GB, free: 28.15 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002018/2.872, allocations: 3.936 MB / 0.9696 GB, free: 24.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00283/2.874, allocations: 2.01 MB / 0.9716 GB, free: 22.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004291/2.879, allocations: 2.178 MB / 0.9737 GB, free: 20.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.968e-05/2.879, allocations: 305.1 kB / 0.974 GB, free: 19.74 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01265/2.891, allocations: 11.06 MB / 0.9848 GB, free: 8.664 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.268/3.16, allocations: 15.23 MB / 0.9997 GB, free: 142.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03391/3.193, allocations: 27.46 MB / 1.026 GB, free: 127.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002814/3.194, allocations: 40.12 kB / 1.027 GB, free: 127.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3461/3.54, allocations: 141.1 MB / 1.164 GB, free: 1.867 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-05/3.54, allocations: 68 kB / 1.164 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/3.54, allocations: 136 kB / 1.164 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3249/3.865, allocations: 34.69 MB / 1.198 GB, free: 145.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005361/3.871, allocations: 1.564 MB / 1.2 GB, free: 145.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5301/4.401, allocations: 203.6 MB / 1.399 GB, free: 123.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01534/4.416, allocations: 1.719 MB / 1.4 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003058/4.419, allocations: 0.5345 MB / 1.401 GB, free: 123.6 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.008146/4.427, allocations: 3.107 MB / 1.404 GB, free: 122.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/4.429, allocations: 0.5711 MB / 1.404 GB, free: 122.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3248/4.754, allocations: 136.7 MB / 1.538 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/4.754, allocations: 56 kB / 1.538 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001929/4.754, allocations: 60 kB / 1.538 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001355/4.755, allocations: 31.53 kB / 1.538 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8861/5.641, allocations: 205.9 MB / 1.739 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.505e-05/5.641, allocations: 6.125 kB / 1.739 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/5.643, allocations: 335.9 kB / 1.74 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07883/5.721, allocations: 33.42 MB / 1.772 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002485/5.724, allocations: 103.9 kB / 1.772 GB, free: 147 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5238/6.248, allocations: 186.2 MB / 1.954 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/6.248, allocations: 10.31 kB / 1.954 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3414/6.589, allocations: 152.5 MB / 2.103 GB, free: 22.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008598/6.598, allocations: 3.011 MB / 2.106 GB, free: 19.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00301/6.601, allocations: 96 kB / 2.106 GB, free: 19.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01067/6.612, allocations: 1.484 MB / 2.108 GB, free: 17.77 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004517/6.616, allocations: 0.4909 MB / 2.108 GB, free: 17.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001214/6.617, allocations: 146.8 kB / 2.108 GB, free: 17.14 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.3416/6.959, allocations: 3.499 MB / 2.112 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.31e-07/6.959, allocations: 4.781 kB / 2.112 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.02381/6.983, allocations: 3.861 MB / 2.115 GB, free: 151.4 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.003062/6.986, allocations: 240.4 kB / 2.116 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0656/7.052, allocations: 33.81 MB / 2.149 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.197e-05/7.052, allocations: 3.938 kB / 2.149 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04384/7.096, allocations: 20.54 MB / 2.169 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008695/7.104, allocations: 0.7868 MB / 2.169 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04481/7.149, allocations: 27.14 MB / 2.196 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008715/7.158, allocations: 5.117 MB / 2.201 GB, free: 112 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004787/7.163, allocations: 2.064 MB / 2.203 GB, free: 110.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008905/7.164, allocations: 305.7 kB / 2.203 GB, free: 110.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/7.164, allocations: 0 / 2.203 GB, free: 110.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.6659/7.83, allocations: 276.7 MB / 2.473 GB, free: 9.582 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)