Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001191/0.001191, allocations: 87.09 kB / 16.31 MB, free: 6.449 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.001468/0.001468, allocations: 179.1 kB / 17.21 MB, free: 6.32 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.536/1.536, allocations: 205.4 MB / 223.4 MB, free: 5.277 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.0004679/0.0004679, allocations: 12 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.351, allocations: 47.6 MB / 327.7 MB, free: 1.66 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04953/0.4006, allocations: 48.42 MB / 376.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03366/0.4343, allocations: 10.65 MB / 386.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01263/0.447, allocations: 231.4 kB / 387 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.4579, allocations: 2.516 MB / 389.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02912/0.4871, allocations: 7.588 MB / 397.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005168/0.4923, allocations: 0.8542 MB / 398 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.05392/0.5462, allocations: 36.62 MB / 434.6 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01082/0.5571, allocations: 5.041 MB / 439.7 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005213/0.5624, allocations: 1.891 MB / 441.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006259/0.5687, allocations: 3.124 MB / 444.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001935/0.5706, allocations: 236 kB / 444.9 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004233/0.5749, allocations: 1.116 MB / 446 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005103/0.58, allocations: 2.583 MB / 448.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003845/0.5839, allocations: 1.193 MB / 449.8 MB, free: 9.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01295/0.5969, allocations: 7.961 MB / 457.8 MB, free: 1.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.418e-05/0.5969, allocations: 8 kB / 457.8 MB, free: 1.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5969, allocations: 0 / 457.8 MB, free: 1.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005779/0.5975, allocations: 0 / 457.8 MB, free: 1.242 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.2745/0.8721, allocations: 6.126 MB / 463.9 MB, free: 116.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.8721, allocations: 13.75 kB / 463.9 MB, free: 116.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0163/0.8885, allocations: 4.04 MB / 467.9 MB, free: 114.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.8986, allocations: 4.136 MB / 472.1 MB, free: 110.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004021/0.8991, allocations: 319.1 kB / 472.4 MB, free: 110.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002693/0.9018, allocations: 440.6 kB / 472.8 MB, free: 109.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02689/0.9287, allocations: 15.71 MB / 488.5 MB, free: 93.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00017/0.9289, allocations: 55.47 kB / 488.6 MB, free: 93.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006399/0.9295, allocations: 204.2 kB / 488.8 MB, free: 93.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003967/0.9335, allocations: 3.219 MB / 492 MB, free: 90.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02509/0.9586, allocations: 14.08 MB / 0.4942 GB, free: 76.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07851/1.037, allocations: 57.77 MB / 0.5506 GB, free: 16.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01317/1.05, allocations: 6.554 MB / 0.557 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005129/1.056, allocations: 3.669 MB / 0.5606 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02626/1.082, allocations: 14.66 MB / 0.5749 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.46e-05/1.082, allocations: 60.55 kB / 0.575 GB, free: 7.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=289): time 8.285e-06/1.082, allocations: 0 / 0.575 GB, free: 7.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=339): time 0.3636/1.446, allocations: 42.62 MB / 0.6166 GB, free: 148.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/1.446, allocations: 211.9 kB / 0.6168 GB, free: 148 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00703/1.453, allocations: 5.473 MB / 0.6222 GB, free: 146.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006594/1.454, allocations: 74.05 kB / 0.6222 GB, free: 146.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/1.456, allocations: 4.35 MB / 0.6265 GB, free: 143.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001357/1.457, allocations: 1.261 MB / 0.6277 GB, free: 142.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004734/1.458, allocations: 182.6 kB / 0.6279 GB, free: 142.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000367/1.458, allocations: 0.6923 MB / 0.6286 GB, free: 142.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005999/1.464, allocations: 4.774 MB / 0.6332 GB, free: 140.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008463/1.473, allocations: 9.77 MB / 0.6428 GB, free: 131.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008218/1.481, allocations: 6.662 MB / 0.6493 GB, free: 127.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.428e-05/1.481, allocations: 52 kB / 0.6493 GB, free: 127.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.0372/1.518, allocations: 19.5 MB / 0.6683 GB, free: 108 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002555/1.518, allocations: 80 kB / 0.6684 GB, free: 107.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003448/1.519, allocations: 175.9 kB / 0.6686 GB, free: 107.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01927/1.538, allocations: 5.997 MB / 0.6745 GB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007373/1.545, allocations: 2.113 MB / 0.6765 GB, free: 99.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02807/1.574, allocations: 24.77 MB / 0.7007 GB, free: 74.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00857/1.582, allocations: 0.5632 MB / 0.7012 GB, free: 73.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/1.584, allocations: 0.5101 MB / 0.7017 GB, free: 73.48 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.007687/1.592, allocations: 3.105 MB / 0.7048 GB, free: 70.36 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00159/1.594, allocations: 497.5 kB / 0.7053 GB, free: 69.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02798/1.622, allocations: 12.93 MB / 0.7179 GB, free: 56.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001089/1.622, allocations: 52.94 kB / 0.7179 GB, free: 56.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.004e-05/1.622, allocations: 15.95 kB / 0.7179 GB, free: 56.81 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.788e-05/1.622, allocations: 15.94 kB / 0.718 GB, free: 56.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05248/1.674, allocations: 24.63 MB / 0.742 GB, free: 31.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.631e-05/1.674, allocations: 4.594 kB / 0.742 GB, free: 31.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/1.678, allocations: 0.585 MB / 0.7426 GB, free: 31.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01651/1.694, allocations: 4.997 MB / 0.7475 GB, free: 26.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008808/1.695, allocations: 57.17 kB / 0.7475 GB, free: 26.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02342/1.719, allocations: 19.98 MB / 0.767 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/1.719, allocations: 8 kB / 0.767 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.307/2.026, allocations: 17.44 MB / 0.7841 GB, free: 131 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005102/2.031, allocations: 1.266 MB / 0.7853 GB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001823/2.033, allocations: 53.89 kB / 0.7854 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003616/2.036, allocations: 263.4 kB / 0.7856 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006841/2.037, allocations: 199.1 kB / 0.7858 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002703/2.037, allocations: 82.8 kB / 0.7859 GB, free: 130.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006078/2.043, allocations: 3.392 MB / 0.7892 GB, free: 129.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.11e-07/2.043, allocations: 0 / 0.7892 GB, free: 129.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01023/2.054, allocations: 1.76 MB / 0.7909 GB, free: 129.2 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.001084/2.055, allocations: 205.1 kB / 0.7911 GB, free: 129 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01784/2.073, allocations: 10.9 MB / 0.8018 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/2.073, allocations: 0 / 0.8018 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00633/2.079, allocations: 4.087 MB / 0.8057 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.006917/2.086, allocations: 0.5814 MB / 0.8063 GB, free: 116.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03421/2.12, allocations: 18.64 MB / 0.8245 GB, free: 98.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006787/2.127, allocations: 4.627 MB / 0.829 GB, free: 93.86 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.007384/2.135, allocations: 2.966 MB / 0.8319 GB, free: 90.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/2.136, allocations: 351.4 kB / 0.8323 GB, free: 90.54 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/2.136, allocations: 1.641 kB / 0.8323 GB, free: 90.54 MB / 430.1 MB Notification: Performance of Templates: time 0.114/2.25, allocations: 75.3 MB / 0.9058 GB, free: 15.05 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)