Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.006409/0.006409, allocations: 97.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.001407/0.001407, allocations: 191.2 kB / 16.67 MB, free: 5.973 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.466/1.466, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001127/0.001127, allocations: 43.94 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1009, allocations: 46.61 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2397/0.3407, allocations: 16.02 MB / 389.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.3531, allocations: 5.147 MB / 394.3 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004673/0.3578, allocations: 108.1 kB / 394.4 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0099/0.3678, allocations: 4.444 MB / 398.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.3779, allocations: 2.543 MB / 401.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003305/0.3812, allocations: 1.166 MB / 402.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01392/0.3951, allocations: 7.504 MB / 410.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008343/0.4035, allocations: 5.336 MB / 415.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006149/0.4097, allocations: 2.484 MB / 417.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005845/0.4156, allocations: 3.384 MB / 421.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001842/0.4175, allocations: 0.5039 MB / 421.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004074/0.4216, allocations: 1.487 MB / 423.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00353/0.4251, allocations: 2.965 MB / 426.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005593/0.4308, allocations: 3.364 MB / 429.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/0.4464, allocations: 10.4 MB / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4465, allocations: 0 / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4465, allocations: 0 / 440 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003898/0.4469, 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.02075/0.4676, allocations: 7.821 MB / 447.8 MB, free: 4.562 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4677, allocations: 16.03 kB / 447.9 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01492/0.4826, allocations: 3.226 MB / 451.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/0.494, allocations: 5.007 MB / 456.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002894/0.4943, allocations: 337.2 kB / 456.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.4962, allocations: 467.6 kB / 456.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02846/0.5246, allocations: 14.56 MB / 471.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/0.5249, allocations: 79.41 kB / 471.5 MB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007199/0.5256, allocations: 215.8 kB / 471.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005299/0.5309, allocations: 2.836 MB / 474.6 MB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/0.5598, allocations: 13.21 MB / 487.8 MB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08085/0.6407, allocations: 58.37 MB / 0.5333 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01803/0.6588, allocations: 7.735 MB / 0.5409 GB, free: 7.785 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006187/0.665, allocations: 5.055 MB / 0.5458 GB, free: 2.711 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2625/0.9275, allocations: 12.82 MB / 0.5583 GB, free: 145.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.886e-05/0.9276, allocations: 68.08 kB / 0.5584 GB, free: 145.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.131e-06/0.9276, allocations: 0 / 0.5584 GB, free: 145.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.105/3.033, allocations: 411.9 MB / 0.9606 GB, free: 131.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/3.033, allocations: 272 kB / 0.9609 GB, free: 131.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007453/3.041, allocations: 5.509 MB / 0.9662 GB, free: 128.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002337/3.043, allocations: 109.7 kB / 0.9664 GB, free: 128.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003176/3.046, allocations: 4.079 MB / 0.9703 GB, free: 125.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003825/3.05, allocations: 2.118 MB / 0.9724 GB, free: 123.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007186/3.057, allocations: 2.183 MB / 0.9745 GB, free: 121.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.023e-05/3.057, allocations: 301.1 kB / 0.9748 GB, free: 120.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01371/3.071, allocations: 11.06 MB / 0.9856 GB, free: 109.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01599/3.087, allocations: 15.24 MB / 1.001 GB, free: 92.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03061/3.118, allocations: 27.45 MB / 1.027 GB, free: 63.31 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/3.118, allocations: 44 kB / 1.027 GB, free: 63.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6132/3.731, allocations: 141.1 MB / 1.165 GB, free: 101.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/3.731, allocations: 67.88 kB / 1.165 GB, free: 101.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/3.731, allocations: 136 kB / 1.165 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07491/3.806, allocations: 34.68 MB / 1.199 GB, free: 67.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004974/3.811, allocations: 1.572 MB / 1.201 GB, free: 66.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5915/4.403, allocations: 203.6 MB / 1.4 GB, free: 65.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01664/4.42, allocations: 1.72 MB / 1.401 GB, free: 64.03 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004799/4.425, allocations: 0.5361 MB / 1.402 GB, free: 63.5 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.01363/4.438, allocations: 3.1 MB / 1.405 GB, free: 60.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005043/4.443, allocations: 0.6053 MB / 1.405 GB, free: 60.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6379/5.081, allocations: 136.7 MB / 1.539 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.815e-05/5.081, allocations: 60 kB / 1.539 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001964/5.082, allocations: 56 kB / 1.539 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001221/5.082, allocations: 35.83 kB / 1.539 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7273/5.809, allocations: 206 MB / 1.74 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-05/5.809, allocations: 8 kB / 1.74 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/5.811, allocations: 333.4 kB / 1.741 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07454/5.885, allocations: 33.42 MB / 1.773 GB, free: 90.86 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002289/5.888, allocations: 99.98 kB / 1.773 GB, free: 90.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5996/6.487, allocations: 186.3 MB / 1.955 GB, free: 94.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/6.487, allocations: 11.55 kB / 1.955 GB, free: 94.52 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6267/7.114, allocations: 152.6 MB / 2.104 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009008/7.123, allocations: 3.038 MB / 2.107 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003678/7.127, allocations: 94.38 kB / 2.107 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01124/7.138, allocations: 1.488 MB / 2.109 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005556/7.144, allocations: 0.4904 MB / 2.109 GB, free: 125.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001989/7.146, allocations: 147.7 kB / 2.109 GB, free: 125.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.008164/7.154, allocations: 3.499 MB / 2.113 GB, free: 122.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.41e-07/7.154, allocations: 0 / 2.113 GB, free: 122.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01974/7.174, allocations: 3.86 MB / 2.116 GB, free: 119.1 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.002496/7.176, allocations: 242.7 kB / 2.117 GB, free: 119 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.06074/7.237, allocations: 33.85 MB / 2.15 GB, free: 85.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/7.237, allocations: 0 / 2.15 GB, free: 85.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04134/7.278, allocations: 20.6 MB / 2.17 GB, free: 64.75 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01149/7.29, allocations: 0.7855 MB / 2.171 GB, free: 64 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05036/7.34, allocations: 27.37 MB / 2.197 GB, free: 36.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01047/7.351, allocations: 5.112 MB / 2.202 GB, free: 31.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006051/7.357, allocations: 2.06 MB / 2.204 GB, free: 29.48 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/7.358, allocations: 307.4 kB / 2.205 GB, free: 29.18 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/7.358, allocations: 0 / 2.205 GB, free: 29.18 MB / 0.5137 GB Notification: Performance of Templates: time 0.91/8.268, allocations: 276.7 MB / 2.475 GB, free: 133.9 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)