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.001143/0.001143, allocations: 111.6 kB / 17.06 MB, free: 6 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.001061/0.001061, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.458/1.458, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001223/0.001223, allocations: 47.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1037, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2652/0.3689, allocations: 18.58 MB / 393.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.3866, allocations: 6.144 MB / 399.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007006/0.3937, allocations: 144.2 kB / 399.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01563/0.4094, allocations: 6.281 MB / 405.6 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01137/0.4208, allocations: 2.851 MB / 408.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006775/0.4277, allocations: 2.281 MB / 410.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01788/0.4456, allocations: 8.842 MB / 419.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01451/0.4601, allocations: 8.428 MB / 428 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00768/0.4679, allocations: 3.21 MB / 431.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008294/0.4762, allocations: 4.183 MB / 435.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003394/0.4797, allocations: 0.7188 MB / 436.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006208/0.4859, allocations: 1.896 MB / 438 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006685/0.4926, allocations: 3.827 MB / 441.9 MB, free: 12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01016/0.5028, allocations: 4.162 MB / 446 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02238/0.5252, allocations: 13.24 MB / 459.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.5253, allocations: 0 / 459.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5253, allocations: 0 / 459.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005533/0.5259, allocations: 4 kB / 459.3 MB, free: 10.53 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.02891/0.5548, allocations: 8.935 MB / 468.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.5549, allocations: 16.03 kB / 468.2 MB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05092/0.6058, allocations: 4.844 MB / 473.1 MB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01907/0.6249, allocations: 6.704 MB / 479.8 MB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004921/0.6254, allocations: 431.7 kB / 480.2 MB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002662/0.6281, allocations: 0.5819 MB / 480.8 MB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04066/0.6688, allocations: 17.06 MB / 497.8 MB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004394/0.6693, allocations: 79.27 kB / 497.9 MB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002261/0.6716, allocations: 267.8 kB / 498.2 MB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00489/0.6765, allocations: 2.658 MB / 0.4891 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03184/0.7083, allocations: 14.78 MB / 0.5035 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5585/1.267, allocations: 64.35 MB / 0.5664 GB, free: 109.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02555/1.292, allocations: 8.777 MB / 0.5749 GB, free: 109 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007156/1.3, allocations: 5.068 MB / 0.5799 GB, free: 107.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.031/1.331, allocations: 18.63 MB / 0.5981 GB, free: 99.28 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.987e-05/1.331, allocations: 66.88 kB / 0.5981 GB, free: 99.23 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.402e-06/1.331, allocations: 0 / 0.5981 GB, free: 99.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2488/1.58, allocations: 74.08 MB / 0.6705 GB, free: 32.47 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/1.58, allocations: 380.2 kB / 0.6709 GB, free: 32.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008484/1.588, allocations: 6.412 MB / 0.6771 GB, free: 25.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001114/1.589, allocations: 81.7 kB / 0.6772 GB, free: 25.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002315/1.592, allocations: 4.765 MB / 0.6819 GB, free: 20.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.594, allocations: 1.377 MB / 0.6832 GB, free: 19.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003191/1.597, allocations: 1.978 MB / 0.6851 GB, free: 17.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/1.597, allocations: 305.1 kB / 0.6854 GB, free: 17.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006802/1.604, allocations: 5.992 MB / 0.6913 GB, free: 11.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.614, allocations: 11.02 MB / 0.702 GB, free: 13.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02305/1.637, allocations: 17.97 MB / 0.7196 GB, free: 9.367 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001994/1.637, allocations: 48 kB / 0.7196 GB, free: 9.32 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05313/1.69, allocations: 23.33 MB / 0.7424 GB, free: 1.934 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/1.69, allocations: 80 kB / 0.7425 GB, free: 1.855 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002605/1.691, allocations: 172 kB / 0.7427 GB, free: 1.688 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.251/1.942, allocations: 7.445 MB / 0.7499 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009182/1.951, allocations: 2.191 MB / 0.7521 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04801/1.999, allocations: 38.09 MB / 0.7893 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.011, allocations: 0.7421 MB / 0.79 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002453/2.013, allocations: 0.5306 MB / 0.7905 GB, free: 157.2 MB / 0.5138 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.006933/2.02, allocations: 3.442 MB / 0.7939 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/2.022, allocations: 0.5738 MB / 0.7944 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03134/2.053, allocations: 16.96 MB / 0.811 GB, free: 141.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.399e-05/2.053, allocations: 47.94 kB / 0.811 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.884e-05/2.053, allocations: 19.98 kB / 0.811 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.108e-05/2.053, allocations: 19.94 kB / 0.8111 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05186/2.105, allocations: 32.05 MB / 0.8424 GB, free: 109 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.911e-05/2.105, allocations: 0 / 0.8424 GB, free: 109 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003347/2.109, allocations: 0.6084 MB / 0.843 GB, free: 108.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02046/2.129, allocations: 7.019 MB / 0.8498 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001176/2.13, allocations: 63.98 kB / 0.8499 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0424/2.173, allocations: 36.29 MB / 0.8853 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/2.173, allocations: 4 kB / 0.8853 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04005/2.213, allocations: 24.62 MB / 0.9094 GB, free: 40.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005618/2.219, allocations: 1.659 MB / 0.911 GB, free: 38.51 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002472/2.221, allocations: 60 kB / 0.911 GB, free: 38.45 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006426/2.228, allocations: 442 kB / 0.9115 GB, free: 38.02 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/2.229, allocations: 258.6 kB / 0.9117 GB, free: 37.77 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006014/2.23, allocations: 95.98 kB / 0.9118 GB, free: 37.68 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007086/2.237, allocations: 4.076 MB / 0.9158 GB, free: 33.61 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.41e-07/2.237, allocations: 0 / 0.9158 GB, free: 33.61 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01224/2.249, allocations: 2.303 MB / 0.918 GB, free: 31.32 MB / 0.5138 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.001648/2.251, allocations: 275.8 kB / 0.9183 GB, free: 31.05 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02197/2.273, allocations: 14.88 MB / 0.9328 GB, free: 16.15 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/2.273, allocations: 4 kB / 0.9328 GB, free: 16.14 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.2563/2.529, allocations: 6.707 MB / 0.9394 GB, free: 174.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007434/2.537, allocations: 0.8917 MB / 0.9402 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0391/2.576, allocations: 20.01 MB / 0.9598 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0081/2.584, allocations: 5.286 MB / 0.9649 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007067/2.591, allocations: 3.024 MB / 0.9679 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002102/2.593, allocations: 381.2 kB / 0.9683 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of SimCode: time 9.62e-07/2.593, allocations: 0 / 0.9683 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of Templates: time 0.1538/2.747, allocations: 108.8 MB / 1.075 GB, free: 64.51 MB / 0.5138 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)