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.009383/0.009383, allocations: 101.5 kB / 15.73 MB, free: 6.023 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.001808/0.001808, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001742/0.001742, allocations: 55.12 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1241, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01572/0.1399, allocations: 16.01 MB / 389.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.1527, allocations: 5.14 MB / 394.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004292/0.157, allocations: 115.6 kB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008504/0.1656, allocations: 4.446 MB / 398.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00842/0.174, allocations: 2.556 MB / 401.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002915/0.177, allocations: 1.158 MB / 402.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01135/0.1883, allocations: 7.496 MB / 410.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006352/0.1947, allocations: 5.338 MB / 415.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00461/0.1994, allocations: 2.496 MB / 417.9 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005244/0.2046, allocations: 3.376 MB / 421.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.2059, allocations: 0.5117 MB / 421.8 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00317/0.2091, allocations: 1.494 MB / 423.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003269/0.2123, allocations: 3.008 MB / 426.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004531/0.2169, allocations: 3.36 MB / 429.7 MB, free: 8.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.2312, allocations: 10.37 MB / 440 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2313, allocations: 4 kB / 440 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2313, allocations: 0 / 440 MB, free: 14.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003436/0.2316, allocations: 0 / 440 MB, free: 14.16 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.01999/0.2516, allocations: 7.629 MB / 447.7 MB, free: 6.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.221e-05/0.2517, allocations: 8.031 kB / 447.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01716/0.2689, allocations: 3.19 MB / 450.9 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2697/0.5387, allocations: 4.982 MB / 455.9 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004059/0.5391, allocations: 343.1 kB / 456.2 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002034/0.5412, allocations: 461 kB / 456.6 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/0.5686, allocations: 14.57 MB / 471.2 MB, free: 58.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.5688, allocations: 72.58 kB / 471.3 MB, free: 58.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006065/0.5694, allocations: 214.1 kB / 471.5 MB, free: 58.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00513/0.5746, allocations: 2.833 MB / 474.3 MB, free: 57.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02441/0.599, allocations: 13.22 MB / 487.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06636/0.6654, allocations: 58.28 MB / 0.533 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/0.6828, allocations: 7.728 MB / 0.5406 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00609/0.6889, allocations: 5.051 MB / 0.5455 GB, free: 5.125 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02137/0.7103, allocations: 12.8 MB / 0.558 GB, free: 8.176 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.742e-05/0.7104, allocations: 72.58 kB / 0.5581 GB, free: 8.094 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 5.52e-06/0.7105, allocations: 0 / 0.5581 GB, free: 8.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.255/2.965, allocations: 411.5 MB / 0.9599 GB, free: 34.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/2.965, allocations: 265.6 kB / 0.9602 GB, free: 33.87 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007377/2.973, allocations: 5.499 MB / 0.9656 GB, free: 28.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002648/2.975, allocations: 117.7 kB / 0.9657 GB, free: 28.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00214/2.977, allocations: 3.939 MB / 0.9695 GB, free: 24.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003358/2.981, allocations: 2.009 MB / 0.9715 GB, free: 22.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004375/2.985, allocations: 2.182 MB / 0.9736 GB, free: 20.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.522e-05/2.985, allocations: 301.1 kB / 0.9739 GB, free: 19.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01263/2.998, allocations: 11.06 MB / 0.9847 GB, free: 8.789 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3073/3.305, allocations: 15.23 MB / 0.9996 GB, free: 142.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03536/3.341, allocations: 27.45 MB / 1.026 GB, free: 127.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/3.341, allocations: 42.38 kB / 1.026 GB, free: 127.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3247/3.666, allocations: 141.1 MB / 1.164 GB, free: 2.004 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002721/3.666, allocations: 64 kB / 1.164 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/3.666, allocations: 136 kB / 1.164 GB, free: 1.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3913/4.058, allocations: 34.69 MB / 1.198 GB, free: 145.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005596/4.063, allocations: 1.569 MB / 1.2 GB, free: 145.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5963/4.66, allocations: 203.6 MB / 1.399 GB, free: 124 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01667/4.676, allocations: 1.723 MB / 1.4 GB, free: 123.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003816/4.68, allocations: 0.536 MB / 1.401 GB, free: 123.8 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.01118/4.691, allocations: 3.106 MB / 1.404 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002691/4.694, allocations: 0.5721 MB / 1.404 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3154/5.009, allocations: 136.7 MB / 1.538 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001207/5.01, allocations: 58.91 kB / 1.538 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002202/5.01, allocations: 60 kB / 1.538 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001372/5.01, allocations: 31.83 kB / 1.538 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8824/5.892, allocations: 206 MB / 1.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000116/5.893, allocations: 5.812 kB / 1.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/5.895, allocations: 332.9 kB / 1.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07739/5.972, allocations: 33.42 MB / 1.772 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002083/5.974, allocations: 103.5 kB / 1.772 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5373/6.512, allocations: 186.2 MB / 1.954 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/6.512, allocations: 7.938 kB / 1.954 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3325/6.844, allocations: 152.6 MB / 2.103 GB, free: 22.49 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01044/6.855, allocations: 3.016 MB / 2.106 GB, free: 19.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003355/6.858, allocations: 96.7 kB / 2.106 GB, free: 19.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0113/6.869, allocations: 1.489 MB / 2.107 GB, free: 17.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00473/6.874, allocations: 0.4936 MB / 2.108 GB, free: 17.44 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001209/6.875, allocations: 144 kB / 2.108 GB, free: 17.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.3436/7.219, allocations: 3.497 MB / 2.112 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5e-07/7.219, allocations: 0 / 2.112 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.02235/7.241, 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.002683/7.244, allocations: 239.9 kB / 2.116 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.06503/7.309, allocations: 33.8 MB / 2.149 GB, free: 150 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.936e-05/7.309, allocations: 3.719 kB / 2.149 GB, free: 150 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04273/7.352, allocations: 20.55 MB / 2.169 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/7.362, allocations: 0.781 MB / 2.169 GB, free: 140.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05428/7.417, allocations: 27.14 MB / 2.196 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/7.43, allocations: 5.118 MB / 2.201 GB, free: 112.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006804/7.437, allocations: 2.064 MB / 2.203 GB, free: 111 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/7.439, allocations: 306.6 kB / 2.203 GB, free: 110.7 MB / 0.5137 GB Notification: Performance of SimCode: time 2.054e-06/7.439, allocations: 0 / 2.203 GB, free: 110.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.6588/8.098, allocations: 282.1 MB / 2.479 GB, free: 4.02 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)