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.00154/0.00154, allocations: 110.2 kB / 16.92 MB, free: 6.332 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.001743/0.001743, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.482/1.482, allocations: 205.1 MB / 223.7 MB, free: 12.35 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.001101/0.001101, allocations: 55.86 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09197, allocations: 46.62 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01612/0.1081, allocations: 16.01 MB / 342.6 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0124/0.1206, allocations: 5.156 MB / 347.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00401/0.1247, allocations: 111.6 kB / 347.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008696/0.1335, allocations: 4.446 MB / 352.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007575/0.1411, allocations: 2.54 MB / 354.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003109/0.1442, allocations: 1.162 MB / 356 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.1559, allocations: 7.496 MB / 363.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007397/0.1633, allocations: 5.338 MB / 368.9 MB, free: 10 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004877/0.1683, allocations: 2.484 MB / 371.4 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005525/0.1738, allocations: 3.372 MB / 374.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001988/0.1758, allocations: 0.5078 MB / 375.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004565/0.1804, allocations: 1.491 MB / 376.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2356/0.416, allocations: 2.962 MB / 379.7 MB, free: 20.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009403/0.4255, allocations: 3.354 MB / 383 MB, free: 19.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02146/0.447, allocations: 10.09 MB / 393.1 MB, free: 18.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.412e-05/0.4471, allocations: 0 / 393.1 MB, free: 18.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4471, allocations: 0 / 393.1 MB, free: 18.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006067/0.4477, allocations: 3.75 kB / 393.1 MB, free: 18.31 MB / 318.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.04016/0.4879, allocations: 7.628 MB / 400.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.488, allocations: 9.281 kB / 400.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/0.5063, allocations: 3.191 MB / 404 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01452/0.5208, allocations: 4.887 MB / 408.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/0.5212, allocations: 342.4 kB / 409.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003274/0.5245, allocations: 457.8 kB / 409.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/0.5589, allocations: 14.57 MB / 424.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003941/0.5594, allocations: 72.92 kB / 424.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002372/0.5618, allocations: 211.3 kB / 424.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005579/0.5674, allocations: 2.83 MB / 427.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03189/0.5993, allocations: 13.22 MB / 440.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09632/0.6956, allocations: 58.53 MB / 499.1 MB, free: 6.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/0.7151, allocations: 7.738 MB / 0.4949 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007692/0.7228, allocations: 5.049 MB / 0.4999 GB, free: 9.875 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02769/0.7505, allocations: 12.8 MB / 0.5124 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.959e-05/0.7506, allocations: 75.88 kB / 0.5124 GB, free: 12.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 9.017e-06/0.7507, allocations: 4 kB / 0.5124 GB, free: 12.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.263/3.014, allocations: 411.5 MB / 0.9143 GB, free: 81.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/3.014, allocations: 263.9 kB / 0.9145 GB, free: 80.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008004/3.022, allocations: 5.497 MB / 0.9199 GB, free: 75.94 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002265/3.024, allocations: 117.7 kB / 0.92 GB, free: 75.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002212/3.027, allocations: 3.942 MB / 0.9238 GB, free: 72.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002949/3.03, allocations: 2.008 MB / 0.9258 GB, free: 70.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004878/3.034, allocations: 2.181 MB / 0.9279 GB, free: 68.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/3.035, allocations: 305.1 kB / 0.9282 GB, free: 68.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01308/3.048, allocations: 11.06 MB / 0.939 GB, free: 57.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01646/3.064, allocations: 15.24 MB / 0.9539 GB, free: 39.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03028/3.094, allocations: 27.44 MB / 0.9807 GB, free: 10.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001431/3.095, allocations: 40 kB / 0.9808 GB, free: 10.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5547/3.649, allocations: 141.1 MB / 1.118 GB, free: 24.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.477e-05/3.649, allocations: 68.06 kB / 1.119 GB, free: 24.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-05/3.649, allocations: 136 kB / 1.119 GB, free: 24.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3279/3.977, allocations: 34.72 MB / 1.153 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005558/3.983, allocations: 1.572 MB / 1.154 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4789/4.462, allocations: 203.6 MB / 1.353 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01639/4.478, allocations: 1.72 MB / 1.355 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003142/4.481, allocations: 0.5352 MB / 1.355 GB, free: 109.7 MB / 446.1 MB 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.007918/4.489, allocations: 3.103 MB / 1.358 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002034/4.491, allocations: 0.5759 MB / 1.359 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5006/4.992, allocations: 136.7 MB / 1.492 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.266e-05/4.992, allocations: 64.31 kB / 1.492 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001399/4.992, allocations: 61.06 kB / 1.492 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001149/4.992, allocations: 28.22 kB / 1.492 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5761/5.569, allocations: 206.2 MB / 1.694 GB, free: 93.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.029e-05/5.569, allocations: 4 kB / 1.694 GB, free: 93.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/5.57, allocations: 341.4 kB / 1.694 GB, free: 93.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07009/5.64, allocations: 33.46 MB / 1.727 GB, free: 64.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002146/5.643, allocations: 103.9 kB / 1.727 GB, free: 64.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4456/6.088, allocations: 186.2 MB / 1.909 GB, free: 41.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/6.088, allocations: 9.781 kB / 1.909 GB, free: 41.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.546/6.634, allocations: 152.5 MB / 2.058 GB, free: 50.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008134/6.643, allocations: 3.01 MB / 2.061 GB, free: 48.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00366/6.646, allocations: 99.98 kB / 2.061 GB, free: 48.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01149/6.658, allocations: 1.492 MB / 2.062 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004923/6.663, allocations: 498.3 kB / 2.063 GB, free: 46.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001634/6.664, allocations: 146.7 kB / 2.063 GB, free: 45.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007493/6.672, allocations: 3.499 MB / 2.066 GB, free: 42.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/6.672, allocations: 0 / 2.066 GB, free: 42.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01812/6.69, allocations: 3.859 MB / 2.07 GB, free: 38.59 MB / 446.1 MB 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.00218/6.692, allocations: 240.5 kB / 2.07 GB, free: 38.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2999/6.992, allocations: 38.85 MB / 2.108 GB, free: 127.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/6.992, allocations: 1.906 kB / 2.108 GB, free: 127.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04057/7.033, allocations: 20.54 MB / 2.128 GB, free: 126.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008899/7.042, allocations: 0.7819 MB / 2.129 GB, free: 126.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04508/7.087, allocations: 27.31 MB / 2.156 GB, free: 115.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008197/7.095, allocations: 5.124 MB / 2.161 GB, free: 111.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005242/7.1, allocations: 2.054 MB / 2.163 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009739/7.101, allocations: 311.4 kB / 2.163 GB, free: 109.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/7.101, allocations: 1.969 kB / 2.163 GB, free: 109.6 MB / 446.1 MB Notification: Performance of Templates: time 0.8013/7.903, allocations: 279.5 MB / 2.436 GB, free: 138.8 MB / 462.1 MB 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)