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.001128/0.001129, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001203/0.001203, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.505/1.505, allocations: 205.1 MB / 222 MB, free: 4.773 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.001229/0.001229, allocations: 43.94 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.07573/0.3625, allocations: 81.45 MB / 406.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04653/0.4091, allocations: 16.63 MB / 422.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01978/0.4289, allocations: 371.1 kB / 423.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01142/0.4404, allocations: 6.297 MB / 429.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009573/0.4501, allocations: 2.709 MB / 432.1 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008379/0.4585, allocations: 2.188 MB / 434.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01735/0.4759, allocations: 12.69 MB / 447 MB, free: 9.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01314/0.489, allocations: 8.282 MB / 455.3 MB, free: 1.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.25/0.7391, allocations: 2.845 MB / 458.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009326/0.7484, allocations: 4.457 MB / 462.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002322/0.7508, allocations: 0.4906 MB / 463.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004252/0.755, allocations: 1.76 MB / 464.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003801/0.7589, allocations: 3.657 MB / 468.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005411/0.7643, allocations: 3.924 MB / 472.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.7776, allocations: 12.77 MB / 485.2 MB, free: 7.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.7776, allocations: 0 / 485.2 MB, free: 7.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7776, allocations: 0 / 485.2 MB, free: 7.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004576/0.7781, allocations: 0 / 485.2 MB, free: 7.715 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.02516/0.8033, allocations: 8.94 MB / 494.1 MB, free: 3.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.8033, allocations: 9.438 kB / 494.1 MB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04061/0.8439, allocations: 4.852 MB / 499 MB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01862/0.8626, allocations: 6.704 MB / 0.4938 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/0.863, allocations: 435.2 kB / 0.4943 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003627/0.8666, allocations: 0.5844 MB / 0.4948 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0417/0.9083, allocations: 17.06 MB / 0.5115 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003127/0.9087, allocations: 83.27 kB / 0.5116 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001798/0.9105, allocations: 263.4 kB / 0.5118 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004708/0.9152, allocations: 2.659 MB / 0.5144 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03449/0.9497, allocations: 14.78 MB / 0.5289 GB, free: 16 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1045/1.054, allocations: 64.63 MB / 0.592 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02363/1.078, allocations: 8.785 MB / 0.6006 GB, free: 5.668 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007193/1.085, allocations: 5.062 MB / 0.6055 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2326/1.318, allocations: 18.64 MB / 0.6237 GB, free: 219.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/1.318, allocations: 62.47 kB / 0.6238 GB, free: 219.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=281): time 5.971e-06/1.318, allocations: 3.875 kB / 0.6238 GB, free: 219.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=374): time 0.2373/1.555, allocations: 74.06 MB / 0.6961 GB, free: 170.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/1.555, allocations: 376.6 kB / 0.6965 GB, free: 169.6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008321/1.564, allocations: 6.42 MB / 0.7027 GB, free: 163.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001124/1.565, allocations: 81.7 kB / 0.7028 GB, free: 163.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002315/1.567, allocations: 4.759 MB / 0.7074 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.569, allocations: 1.379 MB / 0.7088 GB, free: 157 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002953/1.572, allocations: 1.982 MB / 0.7107 GB, free: 155 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.29e-05/1.572, allocations: 305.1 kB / 0.711 GB, free: 154.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006824/1.579, allocations: 5.996 MB / 0.7169 GB, free: 148.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009636/1.588, allocations: 11.02 MB / 0.7276 GB, free: 135.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01795/1.606, allocations: 17.96 MB / 0.7452 GB, free: 114.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.607, allocations: 48 kB / 0.7452 GB, free: 114.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04489/1.651, allocations: 23.34 MB / 0.768 GB, free: 91.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.652, allocations: 80 kB / 0.7681 GB, free: 91.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.652, allocations: 172.9 kB / 0.7683 GB, free: 91.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/1.672, allocations: 7.447 MB / 0.7755 GB, free: 83.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007785/1.68, allocations: 2.195 MB / 0.7777 GB, free: 81.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04062/1.721, allocations: 35.57 MB / 0.8124 GB, free: 45.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/1.731, allocations: 0.7411 MB / 0.8131 GB, free: 44.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002921/1.734, allocations: 0.5233 MB / 0.8136 GB, free: 44.27 MB / 0.4981 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.007474/1.741, allocations: 3.446 MB / 0.817 GB, free: 40.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001727/1.743, allocations: 0.5747 MB / 0.8176 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02903/1.772, allocations: 16.96 MB / 0.8341 GB, free: 23.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.295e-05/1.772, allocations: 47.83 kB / 0.8342 GB, free: 23.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-05/1.772, allocations: 16 kB / 0.8342 GB, free: 23.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.918e-05/1.772, allocations: 23.92 kB / 0.8342 GB, free: 23.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2548/2.027, allocations: 32.16 MB / 0.8656 GB, free: 190.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.275e-05/2.027, allocations: 0 / 0.8656 GB, free: 190.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/2.031, allocations: 0.6023 MB / 0.8662 GB, free: 190.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01995/2.051, allocations: 7.124 MB / 0.8732 GB, free: 189.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001152/2.052, allocations: 60.06 kB / 0.8732 GB, free: 189.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03923/2.091, allocations: 33.84 MB / 0.9063 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/2.091, allocations: 0 / 0.9063 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03731/2.128, allocations: 24.61 MB / 0.9303 GB, free: 139.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004937/2.133, allocations: 1.673 MB / 0.9319 GB, free: 138.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/2.136, allocations: 60.94 kB / 0.932 GB, free: 138.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004632/2.14, allocations: 444.3 kB / 0.9324 GB, free: 137.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/2.142, allocations: 246.6 kB / 0.9327 GB, free: 137.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003541/2.142, allocations: 93.02 kB / 0.9327 GB, free: 137.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006729/2.149, allocations: 4.087 MB / 0.9367 GB, free: 133.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/2.149, allocations: 0 / 0.9367 GB, free: 133.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01238/2.161, allocations: 2.296 MB / 0.939 GB, free: 131.2 MB / 0.4981 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.001544/2.163, allocations: 282.1 kB / 0.9392 GB, free: 131 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02075/2.183, allocations: 14.85 MB / 0.9537 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/2.183, allocations: 4 kB / 0.9537 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.009189/2.193, allocations: 6.704 MB / 0.9603 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006161/2.199, allocations: 0.8277 MB / 0.9611 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03779/2.237, allocations: 23.59 MB / 0.9841 GB, free: 85.17 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01026/2.247, allocations: 5.287 MB / 0.9893 GB, free: 79.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008966/2.256, allocations: 3.019 MB / 0.9923 GB, free: 76.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002582/2.259, allocations: 379.4 kB / 0.9926 GB, free: 76.45 MB / 0.4981 GB Notification: Performance of SimCode: time 1.183e-06/2.259, allocations: 0 / 0.9926 GB, free: 76.45 MB / 0.4981 GB Notification: Performance of Templates: time 0.3514/2.61, allocations: 108.8 MB / 1.099 GB, free: 171.2 MB / 0.4981 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)