Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001593/0.001593, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002113/0.002114, allocations: 196 kB / 18 MB, free: 5.105 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.424/1.424, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.001262/0.001262, allocations: 51.94 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09468/0.09595, allocations: 46.62 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2168/0.3128, allocations: 16.02 MB / 390.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.324, allocations: 5.141 MB / 395.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003539/0.3276, allocations: 116.1 kB / 395.8 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008841/0.3365, allocations: 4.449 MB / 400.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008346/0.3449, allocations: 2.542 MB / 402.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003275/0.3482, allocations: 1.158 MB / 403.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01275/0.3609, allocations: 7.508 MB / 411.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009499/0.3705, allocations: 5.336 MB / 416.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006962/0.3775, allocations: 2.492 MB / 419.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006704/0.3842, allocations: 3.392 MB / 422.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002228/0.3865, allocations: 0.5039 MB / 423.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004659/0.3912, allocations: 1.49 MB / 424.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004367/0.3956, allocations: 2.996 MB / 427.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006794/0.4024, allocations: 3.364 MB / 431 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01483/0.4173, allocations: 10.37 MB / 441.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4173, allocations: 0 / 441.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4173, allocations: 4 kB / 441.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004514/0.4178, allocations: 0 / 441.4 MB, free: 12.49 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.02317/0.441, allocations: 7.633 MB / 449 MB, free: 4.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.441, allocations: 8.031 kB / 449 MB, free: 4.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.4579, allocations: 3.186 MB / 452.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/0.4732, allocations: 4.989 MB / 457.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004388/0.4737, allocations: 337.2 kB / 457.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002902/0.4766, allocations: 463.6 kB / 458 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/0.5117, allocations: 14.57 MB / 472.5 MB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004644/0.5122, allocations: 75.36 kB / 472.6 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002135/0.5143, allocations: 207.8 kB / 472.8 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0062/0.5205, allocations: 2.832 MB / 475.6 MB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0314/0.552, allocations: 13.22 MB / 488.9 MB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09357/0.6456, allocations: 58.27 MB / 0.5343 GB, free: 32 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01972/0.6654, allocations: 7.733 MB / 0.5419 GB, free: 8.145 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007148/0.6726, allocations: 5.055 MB / 0.5468 GB, free: 3.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.293/0.9656, allocations: 12.8 MB / 0.5593 GB, free: 145.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/0.9657, allocations: 67.64 kB / 0.5594 GB, free: 145.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.422e-06/0.9658, allocations: 0.5625 kB / 0.5594 GB, free: 145.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.061/3.027, allocations: 411.5 MB / 0.9612 GB, free: 132.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/3.027, allocations: 266.6 kB / 0.9615 GB, free: 132.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007411/3.034, allocations: 5.498 MB / 0.9668 GB, free: 128.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002112/3.036, allocations: 113.7 kB / 0.967 GB, free: 128.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/3.038, allocations: 3.945 MB / 0.9708 GB, free: 125.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003145/3.041, allocations: 2.012 MB / 0.9728 GB, free: 123.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004645/3.046, allocations: 2.178 MB / 0.9749 GB, free: 121.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.338e-05/3.046, allocations: 305.1 kB / 0.9752 GB, free: 121.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01382/3.06, allocations: 11.06 MB / 0.986 GB, free: 110 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01688/3.077, allocations: 15.24 MB / 1.001 GB, free: 92.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03171/3.109, allocations: 27.45 MB / 1.028 GB, free: 63.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001979/3.109, allocations: 40 kB / 1.028 GB, free: 63.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6244/3.733, allocations: 141.1 MB / 1.165 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.906e-05/3.734, allocations: 64 kB / 1.166 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/3.734, allocations: 140 kB / 1.166 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07752/3.811, allocations: 34.69 MB / 1.2 GB, free: 84.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005143/3.816, allocations: 1.568 MB / 1.201 GB, free: 82.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.533/4.349, allocations: 203.6 MB / 1.4 GB, free: 65.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01391/4.363, allocations: 1.718 MB / 1.402 GB, free: 64.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002658/4.366, allocations: 0.5356 MB / 1.402 GB, free: 64.28 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.006218/4.372, allocations: 3.099 MB / 1.405 GB, free: 61.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/4.374, allocations: 0.5758 MB / 1.406 GB, free: 61.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5676/4.942, allocations: 136.7 MB / 1.539 GB, free: 109.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.934e-05/4.942, allocations: 56 kB / 1.539 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001315/4.942, allocations: 60 kB / 1.539 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001142/4.942, allocations: 31.83 kB / 1.539 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6078/5.55, allocations: 205.9 MB / 1.74 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.637e-05/5.55, allocations: 8 kB / 1.74 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/5.551, allocations: 334.4 kB / 1.741 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07233/5.624, allocations: 33.42 MB / 1.773 GB, free: 91.65 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002045/5.626, allocations: 104 kB / 1.773 GB, free: 91.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4477/6.074, allocations: 186.2 MB / 1.955 GB, free: 95.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/6.074, allocations: 11.56 kB / 1.955 GB, free: 95.01 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6223/6.696, allocations: 152.5 MB / 2.104 GB, free: 127.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01144/6.708, allocations: 3.007 MB / 2.107 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002943/6.711, allocations: 101.3 kB / 2.107 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01092/6.721, allocations: 1.482 MB / 2.109 GB, free: 126.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004583/6.726, allocations: 0.4974 MB / 2.109 GB, free: 125.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001451/6.728, allocations: 139.5 kB / 2.109 GB, free: 125.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006134/6.734, allocations: 3.503 MB / 2.113 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.31e-07/6.734, allocations: 0 / 2.113 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01949/6.753, allocations: 3.86 MB / 2.117 GB, free: 119.8 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.002825/6.756, allocations: 239.7 kB / 2.117 GB, free: 119.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05949/6.816, allocations: 33.81 MB / 2.15 GB, free: 85.99 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.533e-05/6.816, allocations: 4 kB / 2.15 GB, free: 85.98 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04283/6.859, allocations: 20.55 MB / 2.17 GB, free: 65.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009013/6.868, allocations: 0.7896 MB / 2.171 GB, free: 64.71 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04731/6.915, allocations: 27.15 MB / 2.197 GB, free: 37.56 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01028/6.925, allocations: 5.115 MB / 2.202 GB, free: 32.44 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004839/6.93, allocations: 2.058 MB / 2.204 GB, free: 30.44 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008875/6.931, allocations: 307.4 kB / 2.204 GB, free: 30.14 MB / 0.5137 GB Notification: Performance of SimCode: time 1.233e-06/6.931, allocations: 0 / 2.204 GB, free: 30.14 MB / 0.5137 GB Notification: Performance of Templates: time 0.97/7.901, allocations: 282.1 MB / 2.48 GB, free: 129.9 MB / 0.5294 GB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)