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.001351/0.001351, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.00179/0.00179, allocations: 185.9 kB / 16.25 MB, free: 6.137 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.426/1.426, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.001132/0.001132, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.261, allocations: 46.62 MB / 324.8 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06907/0.3301, allocations: 75.43 MB / 400.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.037/0.3672, allocations: 14.87 MB / 415.2 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01985/0.3872, allocations: 339.1 kB / 415.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008704/0.3959, allocations: 4.285 MB / 419.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00831/0.4043, allocations: 2.362 MB / 422.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002991/0.4073, allocations: 1.085 MB / 423.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.4183, allocations: 7.831 MB / 431 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007623/0.426, allocations: 5.595 MB / 436.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005303/0.4313, allocations: 2.55 MB / 439.2 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006001/0.4373, allocations: 3.755 MB / 442.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001608/0.439, allocations: 0.5039 MB / 443.5 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003549/0.4425, allocations: 1.506 MB / 445 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003503/0.4461, allocations: 2.996 MB / 448 MB, free: 8.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005004/0.4511, allocations: 3.399 MB / 451.4 MB, free: 5.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2437/0.6948, allocations: 10.13 MB / 461.5 MB, free: 19.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.6948, allocations: 0 / 461.5 MB, free: 19.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6948, allocations: 0 / 461.5 MB, free: 19.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004943/0.6954, allocations: 1.094 kB / 461.5 MB, free: 19.85 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.02412/0.7195, allocations: 7.635 MB / 469.1 MB, free: 17.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.7195, allocations: 9.688 kB / 469.1 MB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01458/0.7341, allocations: 3.182 MB / 472.3 MB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/0.7467, allocations: 4.882 MB / 477.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003276/0.7471, allocations: 338.7 kB / 477.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002712/0.7498, allocations: 466.9 kB / 478 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02835/0.7782, allocations: 14.57 MB / 492.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002916/0.7785, allocations: 71.42 kB / 492.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009851/0.7795, allocations: 210.4 kB / 492.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004656/0.7842, allocations: 2.835 MB / 495.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/0.8063, allocations: 13.22 MB / 0.4969 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07539/0.8817, allocations: 58.54 MB / 0.5541 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/0.8996, allocations: 7.74 MB / 0.5617 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006185/0.9058, allocations: 5.044 MB / 0.5666 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01941/0.9252, allocations: 12.8 MB / 0.5791 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.9253, allocations: 71.7 kB / 0.5792 GB, free: 14.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.119e-06/0.9253, allocations: 0 / 0.5792 GB, free: 14.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.952/2.878, allocations: 411.5 MB / 0.981 GB, free: 107.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/2.878, allocations: 265.7 kB / 0.9813 GB, free: 106.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007976/2.886, allocations: 5.496 MB / 0.9866 GB, free: 101.4 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.002772/2.889, allocations: 113.7 kB / 0.9867 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002802/2.891, allocations: 3.933 MB / 0.9906 GB, free: 97.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.003692/2.895, allocations: 2.008 MB / 0.9925 GB, free: 95.42 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006156/2.901, allocations: 2.179 MB / 0.9947 GB, free: 93.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.518e-05/2.901, allocations: 305.1 kB / 0.995 GB, free: 92.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01389/2.915, allocations: 11.06 MB / 1.006 GB, free: 81.86 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01552/2.931, allocations: 15.24 MB / 1.021 GB, free: 64.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0297/2.961, allocations: 27.45 MB / 1.047 GB, free: 35.36 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001774/2.961, allocations: 40 kB / 1.047 GB, free: 35.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5605/3.521, allocations: 141.1 MB / 1.185 GB, free: 109.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000102/3.521, allocations: 64 kB / 1.185 GB, free: 109.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/3.522, allocations: 140 kB / 1.185 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07544/3.597, allocations: 34.72 MB / 1.219 GB, free: 74.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005156/3.602, allocations: 1.567 MB / 1.221 GB, free: 73.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4919/4.094, allocations: 203.6 MB / 1.42 GB, free: 85.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01577/4.11, allocations: 1.718 MB / 1.421 GB, free: 83.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004266/4.114, allocations: 0.5427 MB / 1.422 GB, free: 83.08 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.01131/4.126, allocations: 3.094 MB / 1.425 GB, free: 80.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003103/4.129, allocations: 0.582 MB / 1.426 GB, free: 79.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5414/4.67, allocations: 136.7 MB / 1.559 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-05/4.67, allocations: 56 kB / 1.559 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001732/4.67, allocations: 63.12 kB / 1.559 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001236/4.671, allocations: 31.83 kB / 1.559 GB, free: 154.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6512/5.322, allocations: 206.2 MB / 1.761 GB, free: 171 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.015e-05/5.322, allocations: 11.23 kB / 1.761 GB, free: 171 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/5.324, allocations: 333.7 kB / 1.761 GB, free: 170.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07016/5.394, allocations: 33.46 MB / 1.794 GB, free: 144.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002275/5.396, allocations: 96 kB / 1.794 GB, free: 144.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4892/5.885, allocations: 186.2 MB / 1.975 GB, free: 155.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/5.885, allocations: 10.62 kB / 1.975 GB, free: 155.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5858/6.471, allocations: 152.5 MB / 2.124 GB, free: 175.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007116/6.478, allocations: 3.008 MB / 2.127 GB, free: 175 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00384/6.482, allocations: 99.56 kB / 2.127 GB, free: 175 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01198/6.494, allocations: 1.481 MB / 2.129 GB, free: 174.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007535/6.502, allocations: 0.4922 MB / 2.129 GB, free: 174.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002125/6.504, allocations: 138.5 kB / 2.13 GB, free: 174.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.007131/6.511, allocations: 3.5 MB / 2.133 GB, free: 173.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.71e-07/6.511, allocations: 2.594 kB / 2.133 GB, free: 173.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.02012/6.531, allocations: 3.864 MB / 2.137 GB, free: 173.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.002958/6.534, allocations: 241.6 kB / 2.137 GB, free: 173.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0662/6.601, allocations: 38.85 MB / 2.175 GB, free: 149.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-05/6.601, allocations: 2.734 kB / 2.175 GB, free: 149.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.04197/6.643, allocations: 20.56 MB / 2.195 GB, free: 133.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01298/6.656, allocations: 0.7822 MB / 2.196 GB, free: 132.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05473/6.71, allocations: 30.5 MB / 2.226 GB, free: 102.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01099/6.721, allocations: 5.12 MB / 2.231 GB, free: 97.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006438/6.728, allocations: 2.053 MB / 2.233 GB, free: 95.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/6.729, allocations: 311.4 kB / 2.233 GB, free: 95.12 MB / 0.4981 GB Notification: Performance of SimCode: time 1.643e-06/6.729, allocations: 0 / 2.233 GB, free: 95.12 MB / 0.4981 GB Notification: Performance of Templates: time 0.8488/7.578, allocations: 281 MB / 2.507 GB, free: 145.8 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)