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.001601/0.001601, allocations: 97.28 kB / 16.5 MB, free: 6.648 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.001717/0.001717, allocations: 194.5 kB / 17.42 MB, free: 6.066 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.436/1.436, allocations: 205.1 MB / 223.3 MB, free: 12.47 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.001322/0.001322, allocations: 48.3 kB / 279.3 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.1008, allocations: 46.64 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3031/0.4039, allocations: 81.45 MB / 407.4 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04265/0.4466, allocations: 16.62 MB / 424 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02962/0.4763, allocations: 375.5 kB / 424.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01175/0.4881, allocations: 6.303 MB / 430.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00897/0.4971, allocations: 2.705 MB / 433.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005221/0.5024, allocations: 2.18 MB / 435.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01736/0.5198, allocations: 12.7 MB / 448.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.5309, allocations: 8.28 MB / 456.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006455/0.5374, allocations: 2.858 MB / 459.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008757/0.5462, allocations: 4.456 MB / 463.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002617/0.5488, allocations: 500 kB / 464.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00493/0.5538, allocations: 1.759 MB / 466.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004691/0.5585, allocations: 3.655 MB / 469.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007235/0.5657, allocations: 3.927 MB / 473.7 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01802/0.5838, allocations: 12.76 MB / 486.5 MB, free: 5.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.998e-06/0.5838, allocations: 0 / 486.5 MB, free: 5.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.079e-06/0.5839, allocations: 3.984 kB / 486.5 MB, free: 5.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005871/0.5845, allocations: 0 / 486.5 MB, free: 5.605 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.02806/0.6125, allocations: 8.942 MB / 495.4 MB, free: 12.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.6126, allocations: 8.031 kB / 495.4 MB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04536/0.658, allocations: 4.847 MB / 0.4886 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01599/0.674, allocations: 6.58 MB / 0.495 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004601/0.6745, allocations: 431.7 kB / 0.4954 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002929/0.6774, allocations: 0.5858 MB / 0.496 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04277/0.7202, allocations: 17.06 MB / 0.5126 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008433/0.7212, allocations: 79.27 kB / 0.5127 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004767/0.726, allocations: 267.8 kB / 0.513 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006389/0.7324, allocations: 2.654 MB / 0.5155 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03422/0.7667, allocations: 14.79 MB / 0.53 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5082/1.275, allocations: 64.62 MB / 0.5931 GB, free: 119.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02149/1.296, allocations: 8.782 MB / 0.6017 GB, free: 113 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006129/1.303, allocations: 5.065 MB / 0.6066 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02979/1.332, allocations: 18.64 MB / 0.6248 GB, free: 89.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/1.333, allocations: 68.56 kB / 0.6249 GB, free: 89.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 7.113e-06/1.333, allocations: 0 / 0.6249 GB, free: 89.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2336/1.566, allocations: 74.07 MB / 0.6972 GB, free: 15.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/1.566, allocations: 376.6 kB / 0.6976 GB, free: 14.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/1.579, allocations: 6.424 MB / 0.7039 GB, free: 8.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001356/1.58, allocations: 85.7 kB / 0.7039 GB, free: 8.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003209/1.583, allocations: 4.753 MB / 0.7086 GB, free: 3.344 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002289/1.585, allocations: 1.388 MB / 0.7099 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2282/1.814, allocations: 1.972 MB / 0.7119 GB, free: 153.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.468e-05/1.814, allocations: 305.6 kB / 0.7122 GB, free: 153.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01108/1.825, allocations: 5.993 MB / 0.718 GB, free: 152.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/1.839, allocations: 11.02 MB / 0.7288 GB, free: 143.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01805/1.857, allocations: 17.95 MB / 0.7463 GB, free: 131 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/1.857, allocations: 49.72 kB / 0.7464 GB, free: 131 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04259/1.9, allocations: 23.34 MB / 0.7691 GB, free: 115 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.584e-05/1.9, allocations: 80 kB / 0.7692 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001453/1.9, allocations: 168 kB / 0.7694 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0192/1.919, allocations: 7.451 MB / 0.7767 GB, free: 107.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007566/1.927, allocations: 2.183 MB / 0.7788 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04206/1.969, allocations: 35.57 MB / 0.8135 GB, free: 69.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/1.979, allocations: 0.7431 MB / 0.8143 GB, free: 68.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002577/1.982, allocations: 0.5273 MB / 0.8148 GB, free: 68.14 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.008407/1.99, allocations: 3.438 MB / 0.8181 GB, free: 64.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/1.992, allocations: 0.5728 MB / 0.8187 GB, free: 64.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02837/2.021, allocations: 16.96 MB / 0.8352 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.141e-05/2.021, allocations: 47.94 kB / 0.8353 GB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.929e-05/2.021, allocations: 19.94 kB / 0.8353 GB, free: 47.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001206/2.021, allocations: 19.94 kB / 0.8353 GB, free: 47.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05693/2.078, allocations: 32.16 MB / 0.8667 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.895e-05/2.078, allocations: 0 / 0.8667 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/2.081, allocations: 0.6131 MB / 0.8673 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2606/2.342, allocations: 7.106 MB / 0.8743 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001354/2.343, allocations: 65.08 kB / 0.8743 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04352/2.387, allocations: 33.85 MB / 0.9074 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/2.387, allocations: 3.938 kB / 0.9074 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03769/2.425, allocations: 24.6 MB / 0.9314 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004483/2.429, allocations: 1.662 MB / 0.933 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002175/2.431, allocations: 60 kB / 0.9331 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004426/2.436, allocations: 443.3 kB / 0.9335 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0012/2.437, allocations: 256.4 kB / 0.9338 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003523/2.437, allocations: 96 kB / 0.9339 GB, free: 103.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005905/2.443, allocations: 4.08 MB / 0.9378 GB, free: 99.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/2.443, allocations: 0 / 0.9378 GB, free: 99.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01021/2.453, allocations: 2.298 MB / 0.9401 GB, free: 97.5 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.001326/2.455, allocations: 280 kB / 0.9404 GB, free: 97.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01973/2.475, allocations: 14.85 MB / 0.9549 GB, free: 82.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/2.475, allocations: 0 / 0.9549 GB, free: 82.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008484/2.483, allocations: 6.696 MB / 0.9614 GB, free: 75.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005266/2.488, allocations: 0.8358 MB / 0.9622 GB, free: 74.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03077/2.519, allocations: 23.59 MB / 0.9853 GB, free: 51.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00565/2.525, allocations: 5.292 MB / 0.9904 GB, free: 46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007293/2.532, allocations: 3.022 MB / 0.9934 GB, free: 42.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/2.534, allocations: 383.4 kB / 0.9937 GB, free: 42.6 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/2.534, allocations: 0 / 0.9937 GB, free: 42.6 MB / 446.1 MB Notification: Performance of Templates: time 0.39/2.924, allocations: 108.8 MB / 1.1 GB, free: 86.46 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)