Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004946/0.004946, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001117/0.001117, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.488/1.488, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001296/0.001296, allocations: 53.31 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02114/0.1323, allocations: 18.56 MB / 391.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01459/0.1469, allocations: 6.154 MB / 397.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005104/0.1521, allocations: 143.6 kB / 398 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01241/0.1646, allocations: 6.277 MB / 404.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009127/0.1737, allocations: 2.852 MB / 407.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005306/0.1791, allocations: 2.281 MB / 409.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01382/0.1929, allocations: 8.831 MB / 418.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0112/0.2041, allocations: 8.423 MB / 426.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006599/0.2108, allocations: 3.202 MB / 429.9 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007017/0.2178, allocations: 4.187 MB / 434.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002236/0.2201, allocations: 0.7148 MB / 434.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004418/0.2245, allocations: 1.904 MB / 436.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004606/0.2292, allocations: 3.831 MB / 440.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007087/0.2363, allocations: 4.158 MB / 444.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5042/0.7405, allocations: 13.28 MB / 458 MB, free: 28.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.197e-05/0.7406, allocations: 1.156 kB / 458 MB, free: 28.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.598e-06/0.7406, allocations: 0.5625 kB / 458 MB, free: 28.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009571/0.7416, allocations: 0 / 458 MB, free: 28.09 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.04151/0.7831, allocations: 9.159 MB / 467.1 MB, free: 24.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.719e-05/0.7832, allocations: 9.156 kB / 467.1 MB, free: 24.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05048/0.8337, allocations: 4.897 MB / 472 MB, free: 24.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.8529, allocations: 6.731 MB / 478.8 MB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005362/0.8534, allocations: 440.8 kB / 479.2 MB, free: 23.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004115/0.8576, allocations: 0.577 MB / 479.8 MB, free: 23.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04496/0.9026, allocations: 17.06 MB / 496.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008867/0.9035, allocations: 81.16 kB / 496.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0045/0.908, allocations: 265 kB / 497.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005089/0.9131, allocations: 2.662 MB / 499.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03299/0.9462, allocations: 14.78 MB / 0.5026 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.112/1.058, allocations: 64.47 MB / 0.5655 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02479/1.083, allocations: 8.771 MB / 0.5741 GB, free: 4.105 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00794/1.091, allocations: 5.064 MB / 0.579 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03774/1.129, allocations: 18.67 MB / 0.5973 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.713e-05/1.129, allocations: 60.56 kB / 0.5973 GB, free: 12.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 6.602e-06/1.129, allocations: 0 / 0.5973 GB, free: 12.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5564/1.685, allocations: 74.45 MB / 0.67 GB, free: 189.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/1.685, allocations: 375.3 kB / 0.6704 GB, free: 188.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007926/1.693, allocations: 6.437 MB / 0.6767 GB, free: 184 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001095/1.695, allocations: 81.7 kB / 0.6767 GB, free: 183.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002359/1.697, allocations: 4.937 MB / 0.6816 GB, free: 179 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.699, allocations: 1.453 MB / 0.683 GB, free: 177.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002687/1.701, allocations: 1.985 MB / 0.6849 GB, free: 175.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.6e-05/1.701, allocations: 301.1 kB / 0.6852 GB, free: 175.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006874/1.708, allocations: 5.992 MB / 0.6911 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/1.718, allocations: 11.02 MB / 0.7018 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01842/1.737, allocations: 17.96 MB / 0.7194 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/1.737, allocations: 55.94 kB / 0.7194 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04551/1.783, allocations: 23.37 MB / 0.7422 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002843/1.783, allocations: 76 kB / 0.7423 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003609/1.783, allocations: 172 kB / 0.7425 GB, free: 111.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02304/1.806, allocations: 7.459 MB / 0.7498 GB, free: 104.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007994/1.814, allocations: 2.182 MB / 0.7519 GB, free: 102 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04923/1.864, allocations: 38.11 MB / 0.7891 GB, free: 63.51 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01232/1.876, allocations: 0.749 MB / 0.7898 GB, free: 62.76 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002902/1.879, allocations: 0.5301 MB / 0.7904 GB, free: 62.23 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.009638/1.889, allocations: 3.43 MB / 0.7937 GB, free: 58.79 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002651/1.891, allocations: 0.6092 MB / 0.7943 GB, free: 58.18 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03665/1.928, allocations: 16.97 MB / 0.8109 GB, free: 41.14 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-05/1.928, allocations: 48 kB / 0.8109 GB, free: 41.09 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.866e-05/1.928, allocations: 16 kB / 0.8109 GB, free: 41.07 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/1.928, allocations: 27.86 kB / 0.811 GB, free: 41.05 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3656/2.294, allocations: 32.04 MB / 0.8423 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-05/2.294, allocations: 3.938 kB / 0.8423 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003339/2.297, allocations: 0.6021 MB / 0.8428 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02034/2.318, allocations: 7.01 MB / 0.8497 GB, free: 177.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/2.319, allocations: 67.28 kB / 0.8498 GB, free: 177.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0433/2.362, allocations: 36.32 MB / 0.8852 GB, free: 152.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.362, allocations: 5.688 kB / 0.8852 GB, free: 152.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04035/2.402, allocations: 24.64 MB / 0.9093 GB, free: 128.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004911/2.407, allocations: 1.69 MB / 0.9109 GB, free: 127 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002301/2.41, allocations: 63.98 kB / 0.911 GB, free: 127 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005746/2.415, allocations: 446.8 kB / 0.9114 GB, free: 126.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001296/2.417, allocations: 251.6 kB / 0.9117 GB, free: 126.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003833/2.417, allocations: 98.64 kB / 0.9118 GB, free: 126.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005799/2.423, allocations: 4.084 MB / 0.9158 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 6.62e-07/2.423, allocations: 0 / 0.9158 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01092/2.434, allocations: 2.292 MB / 0.918 GB, free: 119.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001227/2.435, allocations: 278.7 kB / 0.9183 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02008/2.455, allocations: 14.91 MB / 0.9328 GB, free: 104.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/2.455, allocations: 0 / 0.9328 GB, free: 104.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.009249/2.465, allocations: 6.707 MB / 0.9394 GB, free: 98.03 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008824/2.473, allocations: 0.8943 MB / 0.9402 GB, free: 97.18 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0336/2.507, allocations: 20.24 MB / 0.96 GB, free: 76.91 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008742/2.516, allocations: 5.28 MB / 0.9652 GB, free: 71.6 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008199/2.524, allocations: 3.024 MB / 0.9681 GB, free: 68.57 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002467/2.527, allocations: 387.4 kB / 0.9685 GB, free: 68.19 MB / 0.5138 GB Notification: Performance of SimCode: time 1.032e-06/2.527, allocations: 0 / 0.9685 GB, free: 68.19 MB / 0.5138 GB Notification: Performance of Templates: time 0.3806/2.907, allocations: 108.8 MB / 1.075 GB, free: 138.9 MB / 0.5138 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)