Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0008465/0.0008464, allocations: 93.44 kB / 16.65 MB, free: 6.586 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.0008246/0.0008247, allocations: 187.3 kB / 17.57 MB, free: 6.199 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.559/1.559, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0005756/0.0005759, allocations: 8 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1155, allocations: 47.59 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3024/0.418, allocations: 79.48 MB / 407.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04143/0.4594, allocations: 16.56 MB / 424.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01883/0.4783, allocations: 374 kB / 424.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.4809, allocations: 0.6686 MB / 425.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007823/0.4887, allocations: 2.711 MB / 428.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003691/0.4924, allocations: 1.352 MB / 429.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01526/0.5077, allocations: 12.68 MB / 442.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01665/0.5244, allocations: 11.93 MB / 454.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00544/0.5299, allocations: 2.241 MB / 456.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006559/0.5365, allocations: 3.687 MB / 460 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001829/0.5383, allocations: 248 kB / 460.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004438/0.5428, allocations: 1.513 MB / 461.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004393/0.5472, allocations: 3.261 MB / 465 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008557/0.5558, allocations: 3.488 MB / 468.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01516/0.571, allocations: 12.33 MB / 480.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.5711, allocations: 0 / 480.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5711, allocations: 4 kB / 480.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00054/0.5716, allocations: 0 / 480.8 MB, free: 13.76 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.02032/0.5919, allocations: 7.324 MB / 488.2 MB, free: 6.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.592, allocations: 8.031 kB / 488.2 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0498/0.6418, allocations: 4.968 MB / 493.1 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0172/0.6591, allocations: 6.584 MB / 499.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/0.6595, allocations: 435.7 kB / 0.4884 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002678/0.6622, allocations: 0.578 MB / 0.489 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04151/0.7037, allocations: 17.12 MB / 0.5057 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003662/0.7041, allocations: 83.27 kB / 0.5058 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002023/0.7062, allocations: 263.8 kB / 0.506 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005035/0.7112, allocations: 2.662 MB / 0.5086 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0349/0.7461, allocations: 14.83 MB / 0.5231 GB, free: 5.762 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.519/1.265, allocations: 64.63 MB / 0.5862 GB, free: 119.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.022/1.287, allocations: 8.826 MB / 0.5949 GB, free: 115 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005678/1.293, allocations: 5.062 MB / 0.5998 GB, free: 112.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02387/1.317, allocations: 18.65 MB / 0.618 GB, free: 94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/1.317, allocations: 66.41 kB / 0.6181 GB, free: 93.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.502e-06/1.317, allocations: 0 / 0.6181 GB, free: 93.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2445/1.562, allocations: 75.13 MB / 0.6914 GB, free: 18.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/1.562, allocations: 376.6 kB / 0.6918 GB, free: 18.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008934/1.571, allocations: 6.42 MB / 0.6981 GB, free: 11.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001234/1.572, allocations: 81.7 kB / 0.6982 GB, free: 11.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002782/1.575, allocations: 4.759 MB / 0.7028 GB, free: 7.125 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002088/1.577, allocations: 1.375 MB / 0.7041 GB, free: 5.762 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/1.578, allocations: 0.8159 MB / 0.7049 GB, free: 4.938 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.988e-05/1.578, allocations: 301.1 kB / 0.7052 GB, free: 4.641 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2498/1.828, allocations: 5.989 MB / 0.7111 GB, free: 152.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01697/1.845, allocations: 11.02 MB / 0.7218 GB, free: 144.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02294/1.868, allocations: 17.96 MB / 0.7394 GB, free: 132.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002958/1.868, allocations: 50.94 kB / 0.7394 GB, free: 132.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04886/1.917, allocations: 23.36 MB / 0.7622 GB, free: 119 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/1.917, allocations: 79.12 kB / 0.7623 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002168/1.918, allocations: 176.2 kB / 0.7625 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02129/1.939, allocations: 7.486 MB / 0.7698 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007705/1.947, allocations: 2.191 MB / 0.7719 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04327/1.99, allocations: 35.64 MB / 0.8067 GB, free: 73.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01176/2.002, allocations: 0.7537 MB / 0.8075 GB, free: 72.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002513/2.004, allocations: 0.5247 MB / 0.808 GB, free: 71.95 MB / 446.1 MB 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.009113/2.014, allocations: 3.433 MB / 0.8113 GB, free: 68.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001625/2.015, allocations: 0.583 MB / 0.8119 GB, free: 68.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03101/2.046, allocations: 16.97 MB / 0.8285 GB, free: 51.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/2.046, allocations: 56.69 kB / 0.8285 GB, free: 51.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.626e-05/2.046, allocations: 19.94 kB / 0.8285 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.031e-05/2.046, allocations: 19.94 kB / 0.8286 GB, free: 51.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05199/2.098, allocations: 32.18 MB / 0.86 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/2.099, allocations: 5.969 kB / 0.86 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/2.102, allocations: 0.6052 MB / 0.8606 GB, free: 18.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2693/2.371, allocations: 7.144 MB / 0.8676 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001184/2.372, allocations: 62.95 kB / 0.8676 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04694/2.419, allocations: 33.92 MB / 0.9007 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/2.419, allocations: 7.812 kB / 0.9008 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0417/2.461, allocations: 24.61 MB / 0.9248 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005243/2.466, allocations: 1.674 MB / 0.9264 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002851/2.469, allocations: 61.25 kB / 0.9265 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00666/2.476, allocations: 447.3 kB / 0.9269 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001836/2.478, allocations: 251.7 kB / 0.9271 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000389/2.478, allocations: 95.8 kB / 0.9272 GB, free: 107.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008645/2.487, allocations: 4.084 MB / 0.9312 GB, free: 103.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.352e-06/2.487, allocations: 0 / 0.9312 GB, free: 103.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01305/2.5, allocations: 2.29 MB / 0.9335 GB, free: 101.4 MB / 446.1 MB 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.001586/2.502, allocations: 279.4 kB / 0.9337 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02174/2.523, allocations: 14.85 MB / 0.9482 GB, free: 86.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/2.523, allocations: 4 kB / 0.9482 GB, free: 86.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01062/2.534, allocations: 6.702 MB / 0.9548 GB, free: 79.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/2.545, allocations: 0.8272 MB / 0.9556 GB, free: 78.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04149/2.587, allocations: 23.66 MB / 0.9787 GB, free: 55.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007572/2.594, allocations: 5.291 MB / 0.9839 GB, free: 49.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008592/2.603, allocations: 3.024 MB / 0.9868 GB, free: 46.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002048/2.605, allocations: 383.4 kB / 0.9872 GB, free: 46.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.783e-06/2.605, allocations: 1.094 kB / 0.9872 GB, free: 46.43 MB / 446.1 MB Notification: Performance of Templates: time 0.3884/2.993, allocations: 106.2 MB / 1.091 GB, free: 93.76 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)