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.001473/0.001473, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.505/1.505, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001058/0.001058, allocations: 59.91 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2402, allocations: 46.63 MB / 325.3 MB, free: 1.895 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01711/0.2573, allocations: 16.01 MB / 341.3 MB, free: 3.898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.2706, allocations: 5.141 MB / 346.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005419/0.2761, allocations: 115.6 kB / 346.6 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009554/0.2857, allocations: 4.442 MB / 351 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009598/0.2953, allocations: 2.548 MB / 353.6 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003439/0.2988, allocations: 1.158 MB / 354.7 MB, free: 6.453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.3113, allocations: 7.5 MB / 362.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007025/0.3184, allocations: 5.346 MB / 367.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004943/0.3234, allocations: 2.477 MB / 370 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004696/0.3281, allocations: 3.38 MB / 373.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.3294, allocations: 0.5078 MB / 373.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003184/0.3326, allocations: 1.49 MB / 375.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003046/0.3357, allocations: 2.969 MB / 378.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004829/0.3405, allocations: 3.36 MB / 381.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.3525, allocations: 10.09 MB / 391.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.3526, allocations: 0 / 391.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3526, allocations: 0 / 391.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003898/0.353, allocations: 0 / 391.8 MB, free: 1.16 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.01973/0.3727, allocations: 7.629 MB / 399.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.3728, allocations: 11.97 kB / 399.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01477/0.3875, allocations: 3.186 MB / 402.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.399, allocations: 4.88 MB / 407.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.3994, allocations: 345 kB / 407.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001689/0.4011, allocations: 463.5 kB / 408.3 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02657/0.4276, allocations: 14.57 MB / 422.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002079/0.4279, allocations: 75.27 kB / 423 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006201/0.4285, allocations: 215.8 kB / 423.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005976/0.4345, allocations: 2.836 MB / 426 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02962/0.4642, allocations: 13.21 MB / 439.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3053/0.7695, allocations: 58.54 MB / 497.8 MB, free: 68.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01676/0.7863, allocations: 7.727 MB / 0.4937 GB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005119/0.7915, allocations: 5.048 MB / 0.4986 GB, free: 61.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/0.8082, allocations: 12.81 MB / 0.5111 GB, free: 49.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.098e-05/0.8083, allocations: 76.27 kB / 0.5112 GB, free: 49.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=326): time 5.811e-06/0.8083, allocations: 0 / 0.5112 GB, free: 49.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=572): time 2.226/3.035, allocations: 411.5 MB / 0.913 GB, free: 136.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/3.035, allocations: 263.4 kB / 0.9132 GB, free: 136.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007687/3.043, allocations: 5.494 MB / 0.9186 GB, free: 135.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001541/3.044, allocations: 112.1 kB / 0.9187 GB, free: 135.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/3.046, allocations: 3.947 MB / 0.9226 GB, free: 133 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002131/3.048, allocations: 2.01 MB / 0.9245 GB, free: 131.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003572/3.052, allocations: 2.174 MB / 0.9266 GB, free: 130.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.056e-05/3.052, allocations: 310.2 kB / 0.9269 GB, free: 130.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01167/3.064, allocations: 11.06 MB / 0.9377 GB, free: 126 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01495/3.078, allocations: 15.24 MB / 0.9526 GB, free: 116.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0285/3.107, allocations: 27.44 MB / 0.9794 GB, free: 91.94 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/3.107, allocations: 40 kB / 0.9795 GB, free: 91.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5047/3.612, allocations: 141.1 MB / 1.117 GB, free: 106.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.891e-05/3.612, allocations: 65.09 kB / 1.117 GB, free: 106.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/3.612, allocations: 140 kB / 1.117 GB, free: 106.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0745/3.687, allocations: 34.72 MB / 1.151 GB, free: 72.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004974/3.692, allocations: 1.565 MB / 1.153 GB, free: 70.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4563/4.148, allocations: 203.7 MB / 1.352 GB, free: 43.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01311/4.161, allocations: 1.724 MB / 1.353 GB, free: 41.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002217/4.163, allocations: 0.5349 MB / 1.354 GB, free: 41.42 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.005673/4.169, allocations: 3.097 MB / 1.357 GB, free: 38.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001866/4.171, allocations: 0.5722 MB / 1.358 GB, free: 38.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5063/4.677, allocations: 136.7 MB / 1.491 GB, free: 64.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.089e-05/4.677, allocations: 66.44 kB / 1.491 GB, free: 64.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001626/4.677, allocations: 59.25 kB / 1.491 GB, free: 64.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001026/4.678, allocations: 31.89 kB / 1.491 GB, free: 64.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5272/5.205, allocations: 206.2 MB / 1.692 GB, free: 22.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.84e-05/5.205, allocations: 4 kB / 1.693 GB, free: 22.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/5.207, allocations: 334.2 kB / 1.693 GB, free: 22.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2803/5.487, allocations: 33.46 MB / 1.725 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001809/5.489, allocations: 103.2 kB / 1.726 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4121/5.901, allocations: 186.2 MB / 1.907 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.966e-06/5.901, allocations: 11.69 kB / 1.907 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4942/6.395, allocations: 152.5 MB / 2.056 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006724/6.402, allocations: 3.006 MB / 2.059 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002692/6.405, allocations: 108.8 kB / 2.059 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009761/6.414, allocations: 1.484 MB / 2.061 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003681/6.418, allocations: 497.9 kB / 2.061 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008438/6.419, allocations: 143.1 kB / 2.062 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004627/6.424, allocations: 3.51 MB / 2.065 GB, free: 115.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/6.424, allocations: 0.9375 kB / 2.065 GB, free: 115.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01278/6.436, allocations: 3.856 MB / 2.069 GB, free: 114.9 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.001495/6.438, allocations: 243.8 kB / 2.069 GB, free: 114.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.06197/6.5, allocations: 38.85 MB / 2.107 GB, free: 86.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/6.5, allocations: 4 kB / 2.107 GB, free: 86.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0394/6.539, allocations: 20.54 MB / 2.127 GB, free: 66.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007925/6.547, allocations: 0.7844 MB / 2.128 GB, free: 65.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03734/6.585, allocations: 27.31 MB / 2.154 GB, free: 38.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006238/6.591, allocations: 5.117 MB / 2.159 GB, free: 33.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004954/6.596, allocations: 2.06 MB / 2.161 GB, free: 31.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008868/6.597, allocations: 311.4 kB / 2.162 GB, free: 30.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/6.597, allocations: 0 / 2.162 GB, free: 30.93 MB / 446.1 MB Notification: Performance of Templates: time 0.7555/7.352, allocations: 279.5 MB / 2.435 GB, free: 79.89 MB / 462.1 MB 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)