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.001067/0.001067, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001172/0.001172, allocations: 191.2 kB / 16.14 MB, free: 6.707 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.432/1.432, allocations: 205.1 MB / 222 MB, free: 4.762 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.001273/0.001273, allocations: 52.25 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2564, allocations: 46.63 MB / 324.7 MB, free: 2.141 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06634/0.3228, allocations: 75.43 MB / 400.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04534/0.3682, allocations: 14.97 MB / 415.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02322/0.3915, allocations: 343.1 kB / 415.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008655/0.4002, allocations: 4.434 MB / 419.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007708/0.408, allocations: 2.386 MB / 422.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.4112, allocations: 1.061 MB / 423.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.4267, allocations: 10.52 MB / 433.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009016/0.4358, allocations: 5.203 MB / 439 MB, free: 1.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006697/0.4426, allocations: 2.223 MB / 441.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007095/0.4497, allocations: 3.602 MB / 444.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002229/0.452, allocations: 356 kB / 445.2 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005038/0.457, allocations: 1.404 MB / 446.6 MB, free: 9.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004833/0.4619, allocations: 2.848 MB / 449.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007365/0.4693, allocations: 3.211 MB / 452.6 MB, free: 3.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2344/0.7037, allocations: 9.933 MB / 462.6 MB, free: 19.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.7038, allocations: 3.5 kB / 462.6 MB, free: 19.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7038, allocations: 0.875 kB / 462.6 MB, free: 19.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003528/0.7041, allocations: 0 / 462.6 MB, free: 19.21 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.01831/0.7225, allocations: 7.628 MB / 470.2 MB, free: 16.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.7225, allocations: 7.594 kB / 470.2 MB, free: 16.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01367/0.7362, allocations: 3.188 MB / 473.4 MB, free: 16.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01164/0.7479, allocations: 4.888 MB / 478.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.7482, allocations: 333.1 kB / 478.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002987/0.7512, allocations: 464.4 kB / 479.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/0.7836, allocations: 14.57 MB / 493.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003777/0.784, allocations: 76.39 kB / 493.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00229/0.7863, allocations: 215.9 kB / 493.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005073/0.7914, allocations: 2.829 MB / 496.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02725/0.8187, allocations: 13.22 MB / 0.498 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09966/0.9184, allocations: 58.54 MB / 0.5552 GB, free: 8.641 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01967/0.9381, allocations: 7.736 MB / 0.5628 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007502/0.9456, allocations: 5.047 MB / 0.5677 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02628/0.9719, allocations: 12.8 MB / 0.5802 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.268e-05/0.9721, allocations: 76.69 kB / 0.5803 GB, free: 14.78 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 7.895e-06/0.9721, allocations: 3.094 kB / 0.5803 GB, free: 14.78 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.049/3.021, allocations: 411.5 MB / 0.9821 GB, free: 107.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/3.022, allocations: 269.5 kB / 0.9823 GB, free: 107.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/3.033, allocations: 5.492 MB / 0.9877 GB, free: 101.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.002842/3.036, allocations: 109.7 kB / 0.9878 GB, free: 101.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003014/3.039, allocations: 3.939 MB / 0.9917 GB, free: 97.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00381/3.043, allocations: 2.016 MB / 0.9936 GB, free: 95.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009902/3.053, allocations: 2.171 MB / 0.9957 GB, free: 93.39 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.563e-05/3.053, allocations: 309.1 kB / 0.996 GB, free: 93.08 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0153/3.068, allocations: 11.06 MB / 1.007 GB, free: 82.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01748/3.086, allocations: 15.24 MB / 1.022 GB, free: 64.93 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03272/3.119, allocations: 27.44 MB / 1.049 GB, free: 35.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/3.119, allocations: 40 kB / 1.049 GB, free: 35.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5471/3.666, allocations: 141.1 MB / 1.186 GB, free: 110.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000193/3.666, allocations: 64 kB / 1.186 GB, free: 110.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002935/3.666, allocations: 139.8 kB / 1.187 GB, free: 109.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0759/3.742, allocations: 34.69 MB / 1.22 GB, free: 75.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005345/3.748, allocations: 1.567 MB / 1.222 GB, free: 73.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4637/4.212, allocations: 190.6 MB / 1.408 GB, free: 98.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01524/4.227, allocations: 1.716 MB / 1.41 GB, free: 96.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003861/4.231, allocations: 0.5388 MB / 1.41 GB, free: 96.07 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.01069/4.241, allocations: 3.101 MB / 1.413 GB, free: 93.14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003048/4.244, allocations: 0.5804 MB / 1.414 GB, free: 92.87 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5501/4.795, allocations: 136.7 MB / 1.547 GB, free: 166.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/4.795, allocations: 58.78 kB / 1.547 GB, free: 166.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002418/4.795, allocations: 60 kB / 1.547 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001774/4.795, allocations: 23.91 kB / 1.547 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6067/5.402, allocations: 206.2 MB / 1.749 GB, free: 175.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.132e-05/5.402, allocations: 7.812 kB / 1.749 GB, free: 175.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/5.404, allocations: 330.8 kB / 1.749 GB, free: 175.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07715/5.481, allocations: 33.85 MB / 1.782 GB, free: 157.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002672/5.484, allocations: 97.42 kB / 1.782 GB, free: 157.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4979/5.981, allocations: 173.4 MB / 1.952 GB, free: 173.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/5.981, allocations: 11.44 kB / 1.952 GB, free: 173.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5569/6.538, allocations: 152.5 MB / 2.101 GB, free: 176.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006945/6.545, allocations: 3.009 MB / 2.104 GB, free: 176.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002835/6.548, allocations: 102.5 kB / 2.104 GB, free: 176.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009288/6.558, allocations: 1.483 MB / 2.105 GB, free: 176.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004045/6.562, allocations: 0.4886 MB / 2.106 GB, free: 176.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00122/6.563, allocations: 141.6 kB / 2.106 GB, free: 176.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006523/6.569, allocations: 3.506 MB / 2.109 GB, free: 176.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.1e-07/6.569, allocations: 0 / 2.109 GB, free: 176.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01717/6.587, allocations: 3.855 MB / 2.113 GB, free: 176.3 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.001971/6.589, allocations: 254.1 kB / 2.113 GB, free: 176.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.05696/6.646, allocations: 33.7 MB / 2.146 GB, free: 168.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/6.646, allocations: 0 / 2.146 GB, free: 168.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.05114/6.697, allocations: 20.52 MB / 2.166 GB, free: 156.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01325/6.71, allocations: 0.7529 MB / 2.167 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04939/6.76, allocations: 30.49 MB / 2.197 GB, free: 128 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009355/6.769, allocations: 5.112 MB / 2.202 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006646/6.776, allocations: 2.059 MB / 2.204 GB, free: 122.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001848/6.777, allocations: 309.7 kB / 2.204 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.933e-06/6.778, allocations: 0 / 2.204 GB, free: 122.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.5409/7.318, allocations: 270.2 MB / 2.468 GB, free: 40.31 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)