Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001331/0.001331, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0005063/0.0005064, allocations: 10.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2959, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.05109/0.347, allocations: 48.43 MB / 374.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03087/0.3779, allocations: 10.64 MB / 385.5 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01301/0.391, allocations: 227.4 kB / 385.8 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009876/0.4009, allocations: 2.519 MB / 388.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0268/0.4278, allocations: 7.596 MB / 395.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004903/0.4327, allocations: 0.8582 MB / 396.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.05387/0.4866, allocations: 36.62 MB / 433.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0104/0.497, allocations: 5.03 MB / 438.4 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005248/0.5023, allocations: 1.895 MB / 440.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005766/0.5081, allocations: 3.116 MB / 443.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001692/0.5098, allocations: 236 kB / 443.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003677/0.5135, allocations: 1.123 MB / 444.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00431/0.5179, allocations: 2.575 MB / 447.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002546/0.5204, allocations: 1.197 MB / 448.5 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009767/0.5302, allocations: 7.957 MB / 456.5 MB, free: 1.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.5303, allocations: 4 kB / 456.5 MB, free: 1.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.5303, allocations: 0 / 456.5 MB, free: 1.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003768/0.5307, allocations: 3.938 kB / 456.5 MB, free: 1.121 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.2106/0.7413, allocations: 6.132 MB / 462.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.7413, allocations: 9.688 kB / 462.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01517/0.7565, allocations: 4.043 MB / 466.7 MB, free: 113.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01016/0.7667, allocations: 4.138 MB / 470.8 MB, free: 110.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000401/0.7672, allocations: 321.7 kB / 471.1 MB, free: 110.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00236/0.7695, allocations: 436.8 kB / 471.6 MB, free: 109.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02814/0.7977, allocations: 15.71 MB / 487.3 MB, free: 93.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002765/0.798, allocations: 59.52 kB / 487.3 MB, free: 93.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001965/0.8, allocations: 201.7 kB / 487.5 MB, free: 93.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004493/0.8045, allocations: 3.218 MB / 490.7 MB, free: 90 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/0.8315, allocations: 14.09 MB / 0.493 GB, free: 75.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07825/0.9098, allocations: 57.76 MB / 0.5494 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01274/0.9226, allocations: 6.557 MB / 0.5558 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005027/0.9277, allocations: 3.673 MB / 0.5594 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0255/0.9532, allocations: 14.64 MB / 0.5737 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.488e-05/0.9533, allocations: 72.5 kB / 0.5738 GB, free: 6.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=289): time 5.991e-06/0.9533, allocations: 0 / 0.5738 GB, free: 6.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=339): time 0.3746/1.328, allocations: 42.61 MB / 0.6154 GB, free: 148.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/1.328, allocations: 211.5 kB / 0.6156 GB, free: 148.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008045/1.336, allocations: 5.475 MB / 0.6209 GB, free: 146.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009637/1.337, allocations: 73.95 kB / 0.621 GB, free: 146.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/1.34, allocations: 4.352 MB / 0.6252 GB, free: 143.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.341, allocations: 1.264 MB / 0.6265 GB, free: 143 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005538/1.342, allocations: 180.3 kB / 0.6266 GB, free: 142.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004906/1.343, allocations: 0.6895 MB / 0.6273 GB, free: 142.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006348/1.349, allocations: 4.772 MB / 0.632 GB, free: 140.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01008/1.359, allocations: 9.773 MB / 0.6415 GB, free: 131.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009985/1.369, allocations: 6.662 MB / 0.648 GB, free: 127.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/1.369, allocations: 48 kB / 0.6481 GB, free: 127.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04351/1.413, allocations: 19.5 MB / 0.6671 GB, free: 107.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002686/1.413, allocations: 84.92 kB / 0.6672 GB, free: 107.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003819/1.413, allocations: 176.8 kB / 0.6674 GB, free: 107.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/1.433, allocations: 5.995 MB / 0.6732 GB, free: 101.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007465/1.44, allocations: 2.109 MB / 0.6753 GB, free: 99.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02951/1.47, allocations: 24.76 MB / 0.6995 GB, free: 74.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009004/1.479, allocations: 0.5592 MB / 0.7 GB, free: 73.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002131/1.481, allocations: 0.5194 MB / 0.7005 GB, free: 73.22 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007655/1.489, allocations: 3.101 MB / 0.7036 GB, free: 70.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/1.49, allocations: 497.5 kB / 0.704 GB, free: 69.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02865/1.519, allocations: 12.93 MB / 0.7167 GB, free: 56.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/1.519, allocations: 60.28 kB / 0.7167 GB, free: 56.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.374e-05/1.519, allocations: 8 kB / 0.7167 GB, free: 56.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.079e-05/1.519, allocations: 19.94 kB / 0.7167 GB, free: 56.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05177/1.571, allocations: 24.63 MB / 0.7408 GB, free: 31.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.753e-05/1.571, allocations: 8.094 kB / 0.7408 GB, free: 31.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003012/1.574, allocations: 0.5849 MB / 0.7414 GB, free: 30.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01657/1.591, allocations: 4.996 MB / 0.7462 GB, free: 25.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008293/1.592, allocations: 55.98 kB / 0.7463 GB, free: 25.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02269/1.614, allocations: 19.98 MB / 0.7658 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/1.615, allocations: 7.953 kB / 0.7658 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2565/1.871, allocations: 17.44 MB / 0.7828 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002747/1.874, allocations: 1.261 MB / 0.7841 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009326/1.875, allocations: 55.77 kB / 0.7841 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/1.877, allocations: 261.5 kB / 0.7844 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005811/1.878, allocations: 198.2 kB / 0.7846 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002544/1.878, allocations: 91.12 kB / 0.7847 GB, free: 130.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004497/1.883, allocations: 3.389 MB / 0.788 GB, free: 129.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.883, allocations: 0 / 0.788 GB, free: 129.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007644/1.89, allocations: 1.757 MB / 0.7897 GB, free: 129.1 MB / 430.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007165/1.891, allocations: 208.8 kB / 0.7899 GB, free: 128.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0147/1.906, allocations: 10.88 MB / 0.8005 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.906, allocations: 7.969 kB / 0.8005 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005208/1.911, allocations: 4.089 MB / 0.8045 GB, free: 116.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005406/1.916, allocations: 0.5914 MB / 0.8051 GB, free: 116.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02864/1.945, allocations: 18.64 MB / 0.8233 GB, free: 98.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005413/1.951, allocations: 4.623 MB / 0.8278 GB, free: 93.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006591/1.957, allocations: 2.974 MB / 0.8307 GB, free: 90.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/1.959, allocations: 351.4 kB / 0.831 GB, free: 90.43 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/1.959, allocations: 0 / 0.831 GB, free: 90.43 MB / 430.1 MB Notification: Performance of Templates: time 0.115/2.074, allocations: 75.3 MB / 0.9046 GB, free: 14.93 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)