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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 148 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.001486/0.001486, allocations: 197.6 kB / 16.53 MB, free: 6.699 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.468/1.468, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001263/0.001264, allocations: 55.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.273, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01652/0.2895, allocations: 16.01 MB / 341.3 MB, free: 3.848 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.3019, allocations: 5.138 MB / 346.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004818/0.3067, allocations: 115.6 kB / 346.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008471/0.3153, allocations: 4.45 MB / 351 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007268/0.3226, allocations: 2.544 MB / 353.6 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002877/0.3255, allocations: 1.162 MB / 354.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.3368, allocations: 7.488 MB / 362.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007357/0.3442, allocations: 5.35 MB / 367.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005447/0.3497, allocations: 2.48 MB / 370 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006333/0.3561, allocations: 3.376 MB / 373.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002426/0.3586, allocations: 0.5078 MB / 373.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004933/0.3636, allocations: 1.487 MB / 375.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004479/0.3681, allocations: 2.973 MB / 378.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006139/0.3742, allocations: 3.356 MB / 381.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.3867, allocations: 10.09 MB / 391.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3867, allocations: 0 / 391.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3867, allocations: 0 / 391.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000345/0.3871, allocations: 0 / 391.8 MB, free: 1.113 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.01939/0.4065, allocations: 7.629 MB / 399.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.4066, allocations: 12.03 kB / 399.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01487/0.4214, allocations: 3.178 MB / 402.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/0.4339, allocations: 4.884 MB / 407.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000374/0.4343, allocations: 337.1 kB / 407.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002237/0.4365, allocations: 475.5 kB / 408.3 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03202/0.4686, allocations: 14.56 MB / 422.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000347/0.469, allocations: 71.33 kB / 423 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001765/0.4708, allocations: 219.8 kB / 423.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005517/0.4763, allocations: 2.836 MB / 426 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02778/0.5041, allocations: 13.22 MB / 439.2 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3012/0.8054, allocations: 58.53 MB / 497.8 MB, free: 67.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01787/0.8233, allocations: 7.736 MB / 0.4937 GB, free: 63.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005958/0.8293, allocations: 5.059 MB / 0.4986 GB, free: 60.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/0.8523, allocations: 12.81 MB / 0.5111 GB, free: 47.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.2e-05/0.8524, allocations: 64.7 kB / 0.5112 GB, free: 47.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=326): time 9.057e-06/0.8524, allocations: 0 / 0.5112 GB, free: 47.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=572): time 2.338/3.191, allocations: 411.5 MB / 0.913 GB, free: 132.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/3.191, allocations: 270.5 kB / 0.9132 GB, free: 132.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008481/3.199, allocations: 5.499 MB / 0.9186 GB, free: 131.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001847/3.201, allocations: 112.8 kB / 0.9187 GB, free: 131.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002186/3.203, allocations: 3.934 MB / 0.9226 GB, free: 128.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002709/3.206, allocations: 2.01 MB / 0.9245 GB, free: 127.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003987/3.21, allocations: 2.182 MB / 0.9266 GB, free: 126.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.706e-05/3.21, allocations: 308.7 kB / 0.9269 GB, free: 126.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01477/3.225, allocations: 11.06 MB / 0.9377 GB, free: 122 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02051/3.246, allocations: 15.24 MB / 0.9526 GB, free: 112.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03161/3.277, allocations: 27.45 MB / 0.9794 GB, free: 89.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001973/3.277, allocations: 36 kB / 0.9795 GB, free: 89.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6003/3.878, allocations: 141.1 MB / 1.117 GB, free: 105.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-05/3.878, allocations: 64 kB / 1.117 GB, free: 105.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/3.878, allocations: 138 kB / 1.117 GB, free: 105.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0758/3.954, allocations: 34.72 MB / 1.151 GB, free: 71.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/3.959, allocations: 1.565 MB / 1.153 GB, free: 69.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5305/4.489, allocations: 203.7 MB / 1.352 GB, free: 43.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01497/4.504, allocations: 1.718 MB / 1.353 GB, free: 41.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002926/4.507, allocations: 0.5445 MB / 1.354 GB, free: 40.94 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.007645/4.515, allocations: 3.098 MB / 1.357 GB, free: 37.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002179/4.517, allocations: 0.5775 MB / 1.358 GB, free: 37.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5341/5.051, allocations: 136.7 MB / 1.491 GB, free: 64.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.222e-05/5.051, allocations: 58.66 kB / 1.491 GB, free: 64.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000206/5.051, allocations: 60 kB / 1.491 GB, free: 64.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001334/5.052, allocations: 28.97 kB / 1.491 GB, free: 64.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6366/5.688, allocations: 206.2 MB / 1.692 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-05/5.688, allocations: 8 kB / 1.693 GB, free: 21.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/5.69, allocations: 335.4 kB / 1.693 GB, free: 21.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3184/6.008, allocations: 33.45 MB / 1.725 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001982/6.01, allocations: 105.6 kB / 1.726 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.465/6.475, allocations: 186.2 MB / 1.907 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/6.475, allocations: 10.69 kB / 1.907 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6111/7.087, allocations: 152.5 MB / 2.056 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007738/7.094, allocations: 3.005 MB / 2.059 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002991/7.097, allocations: 106.4 kB / 2.059 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01104/7.108, allocations: 1.48 MB / 2.061 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004682/7.113, allocations: 0.4895 MB / 2.061 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001078/7.114, allocations: 150.7 kB / 2.062 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005225/7.119, allocations: 3.499 MB / 2.065 GB, free: 113.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.51e-07/7.119, allocations: 0.9375 kB / 2.065 GB, free: 113.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01515/7.135, allocations: 3.864 MB / 2.069 GB, free: 113 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.001626/7.136, allocations: 244.2 kB / 2.069 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.06538/7.202, allocations: 38.86 MB / 2.107 GB, free: 85.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.078e-05/7.202, allocations: 0 / 2.107 GB, free: 85.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.039/7.241, allocations: 20.55 MB / 2.127 GB, free: 67.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008223/7.249, allocations: 0.7788 MB / 2.128 GB, free: 66.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04434/7.293, allocations: 27.3 MB / 2.154 GB, free: 39.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008085/7.302, allocations: 5.12 MB / 2.159 GB, free: 33.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005572/7.307, allocations: 2.06 MB / 2.161 GB, free: 31.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/7.308, allocations: 315.4 kB / 2.162 GB, free: 31.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/7.308, allocations: 0 / 2.162 GB, free: 31.52 MB / 446.1 MB Notification: Performance of Templates: time 0.8444/8.153, allocations: 279.5 MB / 2.435 GB, free: 80.62 MB / 462.1 MB 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)