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.001101/0.001101, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.0107/0.0107, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.497/1.497, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.0005339/0.0005341, allocations: 18.8 kB / 279.5 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2803, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06739/0.3477, allocations: 73.6 MB / 400.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03562/0.3834, allocations: 14.92 MB / 415.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02066/0.4041, allocations: 339.1 kB / 415.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002682/0.4068, allocations: 0.5945 MB / 416.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007613/0.4145, allocations: 2.394 MB / 418.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003311/0.4178, allocations: 1.061 MB / 419.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.4324, allocations: 10.51 MB / 430.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01114/0.4436, allocations: 7.387 MB / 437.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003727/0.4473, allocations: 1.883 MB / 439.7 MB, free: 2.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005625/0.453, allocations: 3.196 MB / 442.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.4541, allocations: 216 kB / 443.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002825/0.4569, allocations: 1.26 MB / 444.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002597/0.4596, allocations: 2.649 MB / 447 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003301/0.4629, allocations: 2.99 MB / 450 MB, free: 7.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.257/0.7199, allocations: 9.65 MB / 459.7 MB, free: 19.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.72, allocations: 0.5938 kB / 459.7 MB, free: 19.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.72, allocations: 2.094 kB / 459.7 MB, free: 19.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004654/0.7205, allocations: 0.625 kB / 459.7 MB, free: 19.26 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.01964/0.7401, allocations: 6.318 MB / 466 MB, free: 16.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.7402, allocations: 9.125 kB / 466 MB, free: 16.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/0.7568, allocations: 3.244 MB / 469.2 MB, free: 16.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.7696, allocations: 4.883 MB / 474.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002939/0.77, allocations: 341.5 kB / 474.5 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002636/0.7726, allocations: 465 kB / 474.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0298/0.8024, allocations: 14.59 MB / 489.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000291/0.8028, allocations: 74.02 kB / 489.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001392/0.8042, allocations: 213.1 kB / 489.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005371/0.8095, allocations: 2.834 MB / 492.6 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/0.8387, allocations: 13.25 MB / 0.494 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08447/0.9232, allocations: 58.53 MB / 0.5512 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01835/0.9416, allocations: 7.746 MB / 0.5587 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006498/0.9481, allocations: 5.053 MB / 0.5637 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02288/0.971, allocations: 12.8 MB / 0.5762 GB, free: 2.035 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.528e-05/0.9712, allocations: 71.05 kB / 0.5762 GB, free: 1.957 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.241e-06/0.9712, allocations: 0 / 0.5762 GB, free: 1.957 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.153/3.124, allocations: 407.3 MB / 0.974 GB, free: 113.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/3.124, allocations: 273.6 kB / 0.9742 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007207/3.131, allocations: 5.491 MB / 0.9796 GB, free: 108.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.00222/3.133, allocations: 117.7 kB / 0.9797 GB, free: 108 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002292/3.136, allocations: 3.931 MB / 0.9835 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.003226/3.139, allocations: 2.017 MB / 0.9855 GB, free: 102.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001818/3.141, allocations: 0.8242 MB / 0.9863 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.86e-05/3.141, allocations: 309 kB / 0.9866 GB, free: 101 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01343/3.154, allocations: 11.06 MB / 0.9974 GB, free: 89.9 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01745/3.172, allocations: 15.24 MB / 1.012 GB, free: 72.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03092/3.203, allocations: 27.45 MB / 1.039 GB, free: 43.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/3.203, allocations: 40 kB / 1.039 GB, free: 43.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5991/3.802, allocations: 141.1 MB / 1.177 GB, free: 117.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.539e-05/3.802, allocations: 69.3 kB / 1.177 GB, free: 117.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/3.802, allocations: 140 kB / 1.177 GB, free: 117.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07698/3.879, allocations: 34.75 MB / 1.211 GB, free: 82.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005246/3.885, allocations: 1.573 MB / 1.213 GB, free: 80.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4898/4.375, allocations: 190.7 MB / 1.399 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01582/4.39, allocations: 1.723 MB / 1.401 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003115/4.394, allocations: 0.5402 MB / 1.401 GB, free: 103.2 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.007944/4.402, allocations: 3.103 MB / 1.404 GB, free: 100.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001981/4.404, allocations: 0.5792 MB / 1.405 GB, free: 99.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5797/4.983, allocations: 136.7 MB / 1.538 GB, free: 173.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001178/4.983, allocations: 57.97 kB / 1.538 GB, free: 173.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000172/4.984, allocations: 59.94 kB / 1.538 GB, free: 173.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001377/4.984, allocations: 23.91 kB / 1.538 GB, free: 173.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6707/5.655, allocations: 206.2 MB / 1.74 GB, free: 173.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.725e-05/5.655, allocations: 3.969 kB / 1.74 GB, free: 173.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/5.656, allocations: 332.1 kB / 1.74 GB, free: 173.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07858/5.735, allocations: 33.92 MB / 1.773 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002287/5.737, allocations: 99.98 kB / 1.773 GB, free: 164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4888/6.226, allocations: 173.5 MB / 1.943 GB, free: 174.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/6.226, allocations: 9.406 kB / 1.943 GB, free: 174.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3415/6.568, allocations: 152.5 MB / 2.092 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007917/6.576, allocations: 3.017 MB / 2.095 GB, free: 36.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003033/6.579, allocations: 97.25 kB / 2.095 GB, free: 36.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2755/6.854, allocations: 1.487 MB / 2.096 GB, free: 184.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004864/6.859, allocations: 0.4944 MB / 2.097 GB, free: 184.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001413/6.861, allocations: 138.5 kB / 2.097 GB, free: 184.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005964/6.866, allocations: 3.505 MB / 2.1 GB, free: 184.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/6.867, allocations: 2.469 kB / 2.1 GB, free: 184.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01478/6.881, allocations: 3.857 MB / 2.104 GB, free: 184.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.001655/6.883, allocations: 243 kB / 2.104 GB, free: 184.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.05491/6.938, allocations: 33.7 MB / 2.137 GB, free: 180.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.837e-05/6.938, allocations: 7.438 kB / 2.137 GB, free: 180.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.04109/6.979, allocations: 20.51 MB / 2.157 GB, free: 166.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01068/6.99, allocations: 0.7475 MB / 2.158 GB, free: 166 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03588/7.026, allocations: 30.52 MB / 2.188 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005785/7.032, allocations: 5.119 MB / 2.193 GB, free: 134.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00485/7.036, allocations: 2.053 MB / 2.195 GB, free: 133.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008576/7.037, allocations: 311.4 kB / 2.195 GB, free: 132.8 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/7.037, allocations: 0 / 2.195 GB, free: 132.8 MB / 0.4981 GB Notification: Performance of Templates: time 0.6345/7.672, allocations: 262.2 MB / 2.451 GB, free: 52.55 MB / 0.4981 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)