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.005775/0.005775, allocations: 95.97 kB / 15.73 MB, free: 6.055 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.001325/0.001325, allocations: 197.2 kB / 16.67 MB, free: 5.977 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.519/1.519, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001166/0.001166, allocations: 51.94 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09589, allocations: 46.61 MB / 373.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2023/0.2982, allocations: 16.02 MB / 389.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3097, allocations: 5.15 MB / 394.3 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004583/0.3144, allocations: 114 kB / 394.4 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009519/0.3239, allocations: 4.443 MB / 398.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007805/0.3318, allocations: 2.543 MB / 401.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002954/0.3348, allocations: 1.159 MB / 402.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.3471, allocations: 7.504 MB / 410.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007742/0.3549, allocations: 5.335 MB / 415.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004824/0.3598, allocations: 2.488 MB / 417.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005251/0.365, allocations: 3.38 MB / 421.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001765/0.3668, allocations: 0.5078 MB / 421.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003718/0.3706, allocations: 1.483 MB / 423.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003968/0.3746, allocations: 2.965 MB / 426.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004933/0.3795, allocations: 3.36 MB / 429.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.3937, allocations: 10.4 MB / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3938, allocations: 4 kB / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.3938, allocations: 0 / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004337/0.3942, allocations: 0 / 440 MB, free: 12.48 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.02265/0.4169, allocations: 7.821 MB / 447.8 MB, free: 4.562 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.857e-05/0.417, allocations: 12.03 kB / 447.8 MB, free: 4.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01659/0.4336, allocations: 3.222 MB / 451.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/0.4449, allocations: 5.015 MB / 456.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002818/0.4452, allocations: 337.2 kB / 456.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001449/0.4467, allocations: 463.6 kB / 456.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02701/0.4737, allocations: 14.57 MB / 471.4 MB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002147/0.474, allocations: 79.41 kB / 471.5 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006624/0.4746, allocations: 211.8 kB / 471.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005409/0.48, allocations: 2.832 MB / 474.6 MB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02754/0.5076, allocations: 13.22 MB / 487.8 MB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08967/0.5973, allocations: 58.37 MB / 0.5333 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02071/0.6181, allocations: 7.728 MB / 0.5409 GB, free: 7.789 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006578/0.6247, allocations: 5.055 MB / 0.5458 GB, free: 2.715 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2699/0.8947, allocations: 12.82 MB / 0.5583 GB, free: 145.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/0.8948, allocations: 66.02 kB / 0.5584 GB, free: 145.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.942e-06/0.8948, allocations: 1.406 kB / 0.5584 GB, free: 145.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.338/3.233, allocations: 411.9 MB / 0.9606 GB, free: 131.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/3.233, allocations: 268.6 kB / 0.9609 GB, free: 131.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007493/3.241, allocations: 5.499 MB / 0.9662 GB, free: 128.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001789/3.242, allocations: 117.4 kB / 0.9663 GB, free: 128.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/3.245, allocations: 4.088 MB / 0.9703 GB, free: 125.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00306/3.248, allocations: 2.109 MB / 0.9724 GB, free: 123.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004422/3.252, allocations: 2.191 MB / 0.9745 GB, free: 121.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.978e-05/3.252, allocations: 305.1 kB / 0.9748 GB, free: 120.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01322/3.265, allocations: 11.06 MB / 0.9856 GB, free: 109.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01676/3.282, allocations: 15.23 MB / 1.001 GB, free: 92.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02978/3.312, allocations: 27.46 MB / 1.027 GB, free: 63.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002719/3.312, allocations: 40 kB / 1.027 GB, free: 63.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.621/3.933, allocations: 141.1 MB / 1.165 GB, free: 101.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/3.934, allocations: 71.94 kB / 1.165 GB, free: 101.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/3.934, allocations: 136 kB / 1.165 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07647/4.01, allocations: 34.68 MB / 1.199 GB, free: 67.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004725/4.015, allocations: 1.568 MB / 1.201 GB, free: 65.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5357/4.551, allocations: 203.7 MB / 1.4 GB, free: 65.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01637/4.567, allocations: 1.715 MB / 1.401 GB, free: 64.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003777/4.571, allocations: 0.5427 MB / 1.402 GB, free: 63.48 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.01183/4.583, allocations: 3.092 MB / 1.405 GB, free: 60.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004456/4.587, allocations: 0.6116 MB / 1.405 GB, free: 60.33 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5645/5.152, allocations: 136.7 MB / 1.539 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.677e-05/5.152, allocations: 60 kB / 1.539 GB, free: 108.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001808/5.152, allocations: 59.98 kB / 1.539 GB, free: 108.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001425/5.152, allocations: 31.84 kB / 1.539 GB, free: 108.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6483/5.801, allocations: 206 MB / 1.74 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-05/5.801, allocations: 8 kB / 1.74 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/5.802, allocations: 327.6 kB / 1.74 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07217/5.874, allocations: 33.42 MB / 1.773 GB, free: 90.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002492/5.877, allocations: 105.3 kB / 1.773 GB, free: 90.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5213/6.398, allocations: 186.3 MB / 1.955 GB, free: 94.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/6.398, allocations: 11 kB / 1.955 GB, free: 94.35 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.654/7.052, allocations: 152.6 MB / 2.104 GB, free: 127.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008044/7.061, allocations: 3.04 MB / 2.107 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003835/7.064, allocations: 95.38 kB / 2.107 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01107/7.076, allocations: 1.487 MB / 2.109 GB, free: 125.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004407/7.08, allocations: 499.5 kB / 2.109 GB, free: 125.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001143/7.081, allocations: 146.2 kB / 2.109 GB, free: 125.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006107/7.087, allocations: 3.5 MB / 2.113 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.41e-07/7.087, allocations: 0 / 2.113 GB, free: 122.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01708/7.104, allocations: 3.865 MB / 2.116 GB, free: 119 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.002336/7.107, allocations: 244.1 kB / 2.117 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.06212/7.169, allocations: 33.86 MB / 2.15 GB, free: 85.26 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/7.169, allocations: 3.312 kB / 2.15 GB, free: 85.26 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04101/7.21, allocations: 20.59 MB / 2.17 GB, free: 64.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/7.221, allocations: 0.7891 MB / 2.171 GB, free: 63.97 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05391/7.275, allocations: 27.37 MB / 2.197 GB, free: 36.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/7.287, allocations: 5.107 MB / 2.202 GB, free: 31.48 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006065/7.293, allocations: 2.066 MB / 2.204 GB, free: 29.47 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/7.294, allocations: 307.4 kB / 2.205 GB, free: 29.17 MB / 0.5137 GB Notification: Performance of SimCode: time 1.603e-06/7.295, allocations: 0 / 2.205 GB, free: 29.17 MB / 0.5137 GB Notification: Performance of Templates: time 0.8941/8.189, allocations: 276.7 MB / 2.475 GB, free: 133.8 MB / 0.5294 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)