Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009842/0.000984, allocations: 88.56 kB / 16.65 MB, free: 6.535 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.001006/0.001006, allocations: 173.5 kB / 17.56 MB, free: 6.184 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.598/1.598, allocations: 205.4 MB / 223.7 MB, free: 13.05 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.0004944/0.0004945, allocations: 12.22 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1086, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2804/0.3891, allocations: 54.04 MB / 382.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03007/0.4192, allocations: 11.84 MB / 394.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01402/0.4333, allocations: 241.1 kB / 394.4 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002514/0.4359, allocations: 0.4888 MB / 394.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007465/0.4434, allocations: 2.034 MB / 397 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003477/0.4469, allocations: 0.9987 MB / 398 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01164/0.4585, allocations: 8.214 MB / 406.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009906/0.4685, allocations: 7.393 MB / 413.6 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003494/0.472, allocations: 1.533 MB / 415.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004233/0.4763, allocations: 2.576 MB / 417.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008331/0.4772, allocations: 188 kB / 417.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.4804, allocations: 1.398 MB / 419.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002474/0.4829, allocations: 2.23 MB / 421.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003221/0.4861, allocations: 2.488 MB / 424 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.4965, allocations: 8.895 MB / 432.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4966, allocations: 0 / 432.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.4966, allocations: 3.938 kB / 432.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003049/0.4969, allocations: 0 / 432.9 MB, free: 15.22 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01192/0.5088, allocations: 4.935 MB / 437.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.5089, allocations: 8.031 kB / 437.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.5206, allocations: 2.602 MB / 440.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00873/0.5294, allocations: 3.848 MB / 444.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000276/0.5297, allocations: 305.5 kB / 444.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001541/0.5312, allocations: 445.1 kB / 445 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02351/0.5548, allocations: 12.44 MB / 457.4 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001717/0.555, allocations: 47.53 kB / 457.5 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005475/0.5556, allocations: 188.1 kB / 457.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003402/0.559, allocations: 2.031 MB / 459.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02232/0.5813, allocations: 10.59 MB / 470.3 MB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05747/0.6388, allocations: 44.37 MB / 0.5026 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/0.6518, allocations: 4.878 MB / 0.5074 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002873/0.6547, allocations: 2.01 MB / 0.5093 GB, free: 4.742 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.666, allocations: 7.131 MB / 0.5163 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.6661, allocations: 51.56 kB / 0.5163 GB, free: 13.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.56e-06/0.6661, allocations: 0 / 0.5163 GB, free: 13.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.3052/0.9714, allocations: 19.74 MB / 0.5356 GB, free: 163.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.589e-05/0.9715, allocations: 203 kB / 0.5358 GB, free: 162.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009324/0.9808, allocations: 4.485 MB / 0.5402 GB, free: 161.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005901/0.9815, allocations: 61.27 kB / 0.5403 GB, free: 161.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003188/0.9847, allocations: 3.524 MB / 0.5437 GB, free: 158.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.9861, allocations: 0.841 MB / 0.5445 GB, free: 158.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008311/0.9869, allocations: 0.5772 MB / 0.5451 GB, free: 157.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.513e-05/0.987, allocations: 302.7 kB / 0.5454 GB, free: 157.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/0.9908, allocations: 2.366 MB / 0.5477 GB, free: 156.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005288/0.9961, allocations: 6.161 MB / 0.5537 GB, free: 150.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009116/1.005, allocations: 9.167 MB / 0.5626 GB, free: 143.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001194/1.005, allocations: 37.75 kB / 0.5627 GB, free: 143.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01877/1.024, allocations: 9.549 MB / 0.572 GB, free: 137.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.584e-05/1.024, allocations: 67.94 kB / 0.5721 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/1.025, allocations: 132 kB / 0.5722 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003789/1.028, allocations: 1.376 MB / 0.5735 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004965/1.033, allocations: 1.474 MB / 0.575 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.043, allocations: 7.971 MB / 0.5828 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007172/1.051, allocations: 351.4 kB / 0.5831 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/1.052, allocations: 396 kB / 0.5835 GB, free: 125.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004868/1.057, allocations: 2.492 MB / 0.5859 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/1.058, allocations: 404.5 kB / 0.5863 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007522/1.065, allocations: 4.118 MB / 0.5903 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.383e-05/1.065, allocations: 24 kB / 0.5903 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/1.065, allocations: 11.92 kB / 0.5904 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/1.065, allocations: 12.67 kB / 0.5904 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/1.084, allocations: 10.37 MB / 0.6005 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.084, allocations: 4 kB / 0.6005 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/1.085, allocations: 359.2 kB / 0.6008 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003435/1.089, allocations: 1.144 MB / 0.602 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/1.089, allocations: 44 kB / 0.602 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007912/1.097, allocations: 6.667 MB / 0.6085 GB, free: 99.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.097, allocations: 11.94 kB / 0.6085 GB, free: 99.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.107, allocations: 6.908 MB / 0.6153 GB, free: 92.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002241/1.109, allocations: 0.7456 MB / 0.616 GB, free: 92.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005257/1.11, allocations: 36.55 kB / 0.616 GB, free: 92.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/1.111, allocations: 111.9 kB / 0.6161 GB, free: 91.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003799/1.112, allocations: 153.6 kB / 0.6163 GB, free: 91.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/1.112, allocations: 61.08 kB / 0.6163 GB, free: 91.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003717/1.116, allocations: 2.818 MB / 0.6191 GB, free: 88.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.116, allocations: 0 / 0.6191 GB, free: 88.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006245/1.122, allocations: 1.213 MB / 0.6203 GB, free: 87.74 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006072/1.123, allocations: 243.5 kB / 0.6205 GB, free: 87.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007917/1.13, allocations: 5.741 MB / 0.6261 GB, free: 81.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/1.131, allocations: 0 / 0.6261 GB, free: 81.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002264/1.133, allocations: 1.876 MB / 0.6279 GB, free: 79.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006139/1.139, allocations: 0.5023 MB / 0.6284 GB, free: 79.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02275/1.162, allocations: 13.69 MB / 0.6418 GB, free: 65.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004355/1.166, allocations: 3.879 MB / 0.6456 GB, free: 61.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005016/1.171, allocations: 1.93 MB / 0.6475 GB, free: 59.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009274/1.172, allocations: 275.4 kB / 0.6477 GB, free: 59.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.263e-06/1.172, allocations: 0 / 0.6477 GB, free: 59.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07718/1.249, allocations: 43.55 MB / 0.6903 GB, free: 15.94 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)