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.001256/0.001256, allocations: 113 kB / 17.07 MB, free: 6.004 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.001266/0.001266, allocations: 195 kB / 18 MB, free: 5.086 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.506/1.506, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001217/0.001217, allocations: 52.41 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1204, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.265/0.3854, allocations: 18.58 MB / 393.1 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.4019, allocations: 6.137 MB / 399.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00635/0.4083, allocations: 148 kB / 399.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01225/0.4207, allocations: 6.28 MB / 405.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009324/0.43, allocations: 2.939 MB / 408.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005671/0.4357, allocations: 2.285 MB / 410.8 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01458/0.4503, allocations: 8.842 MB / 419.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01148/0.4618, allocations: 8.418 MB / 428.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006983/0.4689, allocations: 3.237 MB / 431.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008829/0.4777, allocations: 4.191 MB / 435.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003987/0.4818, allocations: 0.7148 MB / 436.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006021/0.4878, allocations: 1.908 MB / 438.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005414/0.4932, allocations: 3.862 MB / 442 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008738/0.502, allocations: 4.162 MB / 446.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0172/0.5192, allocations: 13.24 MB / 459.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.5193, allocations: 0 / 459.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5193, allocations: 4 kB / 459.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004722/0.5198, allocations: 0 / 459.4 MB, free: 10.36 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.0258/0.5456, allocations: 8.95 MB / 468.4 MB, free: 1.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.5457, allocations: 8.031 kB / 468.4 MB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04147/0.5872, allocations: 4.847 MB / 473.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/0.6054, allocations: 6.697 MB / 479.9 MB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004911/0.606, allocations: 435.7 kB / 480.4 MB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003224/0.6092, allocations: 0.5819 MB / 480.9 MB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04019/0.6494, allocations: 17.06 MB / 498 MB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005806/0.65, allocations: 87.25 kB / 498.1 MB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002926/0.653, allocations: 267.8 kB / 498.3 MB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005437/0.6585, allocations: 2.662 MB / 0.4893 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03601/0.6945, allocations: 14.79 MB / 0.5037 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3696/1.064, allocations: 64.34 MB / 0.5665 GB, free: 111 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02417/1.088, allocations: 8.774 MB / 0.5751 GB, free: 110.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006996/1.095, allocations: 5.068 MB / 0.5801 GB, free: 109.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03238/1.128, allocations: 18.64 MB / 0.5983 GB, free: 100.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/1.128, allocations: 59.69 kB / 0.5983 GB, free: 100.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.973e-06/1.128, allocations: 3.938 kB / 0.5983 GB, free: 100.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2311/1.359, allocations: 74.07 MB / 0.6707 GB, free: 34.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.359, allocations: 380.1 kB / 0.671 GB, free: 33.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008313/1.368, allocations: 6.42 MB / 0.6773 GB, free: 27.31 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.369, allocations: 81.38 kB / 0.6774 GB, free: 27.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.371, allocations: 4.76 MB / 0.682 GB, free: 22.46 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001734/1.373, allocations: 1.383 MB / 0.6834 GB, free: 21.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002702/1.376, allocations: 1.978 MB / 0.6853 GB, free: 19.11 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.543e-05/1.376, allocations: 301.1 kB / 0.6856 GB, free: 18.81 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006618/1.382, allocations: 5.996 MB / 0.6914 GB, free: 12.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009068/1.391, allocations: 11.02 MB / 0.7022 GB, free: 15.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02233/1.414, allocations: 17.96 MB / 0.7197 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003064/1.414, allocations: 52 kB / 0.7198 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05188/1.466, allocations: 23.33 MB / 0.7426 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002231/1.466, allocations: 80.25 kB / 0.7426 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003617/1.467, allocations: 172 kB / 0.7428 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3091/1.776, allocations: 7.458 MB / 0.7501 GB, free: 174.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008783/1.785, allocations: 2.186 MB / 0.7522 GB, free: 174.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05414/1.839, allocations: 38.09 MB / 0.7894 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009637/1.848, allocations: 0.745 MB / 0.7902 GB, free: 159.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002227/1.851, allocations: 0.5245 MB / 0.7907 GB, free: 159.1 MB / 0.5137 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.00709/1.858, allocations: 3.44 MB / 0.794 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/1.86, allocations: 0.5728 MB / 0.7946 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03131/1.891, allocations: 16.95 MB / 0.8111 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-05/1.891, allocations: 51.45 kB / 0.8112 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.977e-05/1.891, allocations: 16 kB / 0.8112 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/1.891, allocations: 25.42 kB / 0.8112 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05475/1.946, allocations: 32.06 MB / 0.8425 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.071e-05/1.946, allocations: 1.969 kB / 0.8425 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/1.949, allocations: 0.6084 MB / 0.8431 GB, free: 111.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01864/1.968, allocations: 7.013 MB / 0.85 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00121/1.969, allocations: 60 kB / 0.85 GB, free: 104.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0436/2.013, allocations: 36.29 MB / 0.8855 GB, free: 68.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/2.013, allocations: 7.938 kB / 0.8855 GB, free: 68.28 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03858/2.052, allocations: 24.61 MB / 0.9095 GB, free: 43.62 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005262/2.057, allocations: 1.661 MB / 0.9112 GB, free: 41.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002273/2.059, allocations: 63.83 kB / 0.9112 GB, free: 41.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005677/2.065, allocations: 439.3 kB / 0.9116 GB, free: 41.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/2.067, allocations: 254.6 kB / 0.9119 GB, free: 41.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006598/2.067, allocations: 92 kB / 0.912 GB, free: 41.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007802/2.075, allocations: 4.084 MB / 0.916 GB, free: 37.03 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.4e-07/2.075, allocations: 0 / 0.916 GB, free: 37.03 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01162/2.087, allocations: 2.294 MB / 0.9182 GB, free: 34.75 MB / 0.5137 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.001649/2.088, allocations: 275.8 kB / 0.9185 GB, free: 34.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02105/2.109, allocations: 14.89 MB / 0.933 GB, free: 19.57 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/2.109, allocations: 4.688 kB / 0.933 GB, free: 19.56 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.2353/2.345, allocations: 6.703 MB / 0.9395 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005631/2.351, allocations: 0.8861 MB / 0.9404 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03298/2.384, allocations: 20 MB / 0.9599 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008203/2.392, allocations: 5.293 MB / 0.9651 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007274/2.399, allocations: 3.018 MB / 0.9681 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001761/2.401, allocations: 385.8 kB / 0.9684 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.71e-07/2.401, allocations: 0 / 0.9684 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.143/2.544, allocations: 108.8 MB / 1.075 GB, free: 69.59 MB / 0.5137 GB 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)