Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001258/0.001258, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.543/1.543, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001253/0.001253, allocations: 59.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2935, allocations: 46.63 MB / 325.3 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02101/0.3146, allocations: 18.57 MB / 343.9 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.3312, allocations: 6.15 MB / 350 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00613/0.3374, allocations: 143.6 kB / 350.2 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01244/0.3499, allocations: 6.27 MB / 356.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.3604, allocations: 2.86 MB / 359.3 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00593/0.3664, allocations: 2.28 MB / 361.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.3808, allocations: 8.831 MB / 370.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01124/0.3921, allocations: 8.446 MB / 378.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007219/0.3994, allocations: 3.19 MB / 382.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007795/0.4072, allocations: 4.183 MB / 386.2 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002893/0.4102, allocations: 0.7188 MB / 387 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005801/0.416, allocations: 1.896 MB / 388.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005732/0.4217, allocations: 3.839 MB / 392.7 MB, free: 268 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009066/0.4308, allocations: 4.158 MB / 396.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01936/0.4502, allocations: 12.95 MB / 409.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.4503, allocations: 0 / 409.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.4503, allocations: 4 kB / 409.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005285/0.4509, allocations: 3.938 kB / 409.8 MB, free: 15.09 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02719/0.4781, allocations: 8.934 MB / 418.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.4781, allocations: 8.031 kB / 418.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04929/0.5274, allocations: 4.851 MB / 423.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/0.5456, allocations: 6.584 MB / 430.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004166/0.5461, allocations: 431.7 kB / 430.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002958/0.5491, allocations: 0.5895 MB / 431.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03871/0.5878, allocations: 17.05 MB / 448.2 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004011/0.5882, allocations: 83.27 kB / 448.3 MB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001758/0.59, allocations: 271.8 kB / 448.6 MB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004694/0.5947, allocations: 2.647 MB / 451.2 MB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3689/0.9636, allocations: 14.79 MB / 466 MB, free: 99.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07853/1.042, allocations: 64.63 MB / 0.5182 GB, free: 38.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02191/1.064, allocations: 8.787 MB / 0.5268 GB, free: 29.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0061/1.07, allocations: 5.054 MB / 0.5317 GB, free: 24.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03089/1.101, allocations: 18.65 MB / 0.5499 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/1.101, allocations: 68.56 kB / 0.55 GB, free: 5.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 5.521e-06/1.101, allocations: 0 / 0.55 GB, free: 5.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=374): time 0.549/1.65, allocations: 74.06 MB / 0.6223 GB, free: 135.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003448/1.651, allocations: 376 kB / 0.6227 GB, free: 135.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02248/1.673, allocations: 6.415 MB / 0.629 GB, free: 133.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001899/1.675, allocations: 84.95 kB / 0.629 GB, free: 133.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006503/1.682, allocations: 4.766 MB / 0.6337 GB, free: 129.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003707/1.686, allocations: 1.372 MB / 0.635 GB, free: 128.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01069/1.696, allocations: 1.982 MB / 0.637 GB, free: 127.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/1.696, allocations: 305.1 kB / 0.6373 GB, free: 127.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01486/1.711, allocations: 5.991 MB / 0.6431 GB, free: 122.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01866/1.73, allocations: 11.02 MB / 0.6539 GB, free: 109.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0316/1.762, allocations: 17.96 MB / 0.6714 GB, free: 89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002001/1.762, allocations: 52 kB / 0.6715 GB, free: 88.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.07135/1.833, allocations: 23.34 MB / 0.6942 GB, free: 65.56 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002689/1.834, allocations: 80 kB / 0.6943 GB, free: 65.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003783/1.834, allocations: 172.9 kB / 0.6945 GB, free: 65.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02173/1.856, allocations: 7.465 MB / 0.7018 GB, free: 57.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007293/1.863, allocations: 2.187 MB / 0.7039 GB, free: 55.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04687/1.91, allocations: 38.11 MB / 0.7411 GB, free: 17.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/1.922, allocations: 0.7481 MB / 0.7419 GB, free: 16.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002535/1.924, allocations: 0.5273 MB / 0.7424 GB, free: 15.84 MB / 430.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.008211/1.933, allocations: 3.442 MB / 0.7457 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00271/1.935, allocations: 0.5746 MB / 0.7463 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2884/2.224, allocations: 16.95 MB / 0.7629 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001315/2.224, allocations: 52.2 kB / 0.7629 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-05/2.224, allocations: 17.84 kB / 0.7629 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001167/2.224, allocations: 16.47 kB / 0.7629 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05846/2.283, allocations: 32.17 MB / 0.7943 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-05/2.283, allocations: 0 / 0.7943 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00361/2.286, allocations: 0.6105 MB / 0.7949 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02052/2.307, allocations: 7.04 MB / 0.8018 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001351/2.308, allocations: 62.95 kB / 0.8019 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04287/2.351, allocations: 36.3 MB / 0.8373 GB, free: 88.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/2.351, allocations: 4 kB / 0.8373 GB, free: 88.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04441/2.396, allocations: 24.61 MB / 0.8614 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005173/2.401, allocations: 1.664 MB / 0.863 GB, free: 62.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002753/2.404, allocations: 67.92 kB / 0.8631 GB, free: 62.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006164/2.41, allocations: 447.2 kB / 0.8635 GB, free: 62.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001889/2.412, allocations: 246.6 kB / 0.8637 GB, free: 61.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009098/2.413, allocations: 95.98 kB / 0.8638 GB, free: 61.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00786/2.421, allocations: 4.084 MB / 0.8678 GB, free: 57.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/2.421, allocations: 4 kB / 0.8678 GB, free: 57.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01258/2.433, allocations: 2.294 MB / 0.87 GB, free: 55.43 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.001723/2.435, allocations: 277 kB / 0.8703 GB, free: 55.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.03073/2.466, allocations: 20.06 MB / 0.8899 GB, free: 35.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/2.466, allocations: 2 kB / 0.8899 GB, free: 35.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01069/2.476, allocations: 6.708 MB / 0.8964 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008778/2.485, allocations: 0.8787 MB / 0.8973 GB, free: 27.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03328/2.519, allocations: 20.18 MB / 0.917 GB, free: 7.352 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2105/2.729, allocations: 5.286 MB / 0.9222 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009614/2.739, allocations: 3.018 MB / 0.9251 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/2.741, allocations: 393.4 kB / 0.9255 GB, free: 135.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/2.741, allocations: 0 / 0.9255 GB, free: 135.2 MB / 446.1 MB Notification: Performance of Templates: time 0.1642/2.905, allocations: 113.1 MB / 1.036 GB, free: 42.79 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)