Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009902/0.0009903, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.251/1.251, allocations: 170.7 MB / 178.7 MB, free: 15.59 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001636/0.001636, allocations: 99.52 kB / 218 MB, free: 8.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.578e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06936/0.06939, allocations: 38.78 MB / 301 MB, free: 3.617 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.283/0.3524, allocations: 82.34 MB / 383.3 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.3527, allocations: 79.77 kB / 383.4 MB, free: 2.176 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5031/0.8559, allocations: 119.8 MB / 0.4914 GB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.8559, allocations: 0 / 0.4914 GB, free: 68.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004385/0.8564, allocations: 114.4 kB / 0.4915 GB, free: 68.09 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02262/0.879, allocations: 6.503 MB / 0.4979 GB, free: 65.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.8791, allocations: 10.94 kB / 0.4979 GB, free: 65.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03605/0.9151, allocations: 9.422 MB / 0.5071 GB, free: 65.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02149/0.9367, allocations: 8.554 MB / 0.5154 GB, free: 64.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002841/0.937, allocations: 184.3 kB / 0.5156 GB, free: 64.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/0.9397, allocations: 337.2 kB / 0.5159 GB, free: 64.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01564/0.9554, allocations: 8.854 MB / 0.5246 GB, free: 61.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/0.9836, allocations: 12.99 MB / 0.5373 GB, free: 49.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004948/0.9841, allocations: 83.11 kB / 0.5373 GB, free: 49.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0026/0.9868, allocations: 39.94 kB / 0.5374 GB, free: 49.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002048/0.9888, allocations: 1.439 MB / 0.5388 GB, free: 48.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07316/1.062, allocations: 62.8 MB / 0.6001 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2073/1.269, allocations: 7.013 MB / 0.6069 GB, free: 76.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00702/1.276, allocations: 5.044 MB / 0.6119 GB, free: 76.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007128/1.277, allocations: 0.5716 MB / 0.6124 GB, free: 76.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/1.277, allocations: 68.39 kB / 0.6125 GB, free: 75.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=346): time 5.891e-06/1.277, allocations: 1.531 kB / 0.6125 GB, free: 75.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=610): time 0.1759/1.453, allocations: 75.29 MB / 0.686 GB, free: 46.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/1.453, allocations: 274.4 kB / 0.6863 GB, free: 45.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008071/1.461, allocations: 3.983 MB / 0.6902 GB, free: 42.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002163/1.464, allocations: 29.7 kB / 0.6902 GB, free: 42.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002885/1.466, allocations: 4.043 MB / 0.6942 GB, free: 39.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003882/1.47, allocations: 2.053 MB / 0.6962 GB, free: 37.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002339/1.473, allocations: 4 kB / 0.6962 GB, free: 37.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.001068/1.474, allocations: 0.7121 MB / 0.6969 GB, free: 36.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01107/1.485, allocations: 8.434 MB / 0.7051 GB, free: 28.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01491/1.5, allocations: 12.61 MB / 0.7174 GB, free: 15.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/1.514, allocations: 10.4 MB / 0.7276 GB, free: 5.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001963/1.514, allocations: 40 kB / 0.7276 GB, free: 5.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.3774/1.891, allocations: 38.98 MB / 0.7657 GB, free: 64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002215/1.892, allocations: 65.66 kB / 0.7657 GB, free: 64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002851/1.892, allocations: 145.8 kB / 0.7659 GB, free: 64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06328/1.955, allocations: 21.33 MB / 0.7867 GB, free: 59.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004916/1.96, allocations: 1.488 MB / 0.7882 GB, free: 59.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4189/2.379, allocations: 137 MB / 0.922 GB, free: 61.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0118/2.391, allocations: 0.5506 MB / 0.9225 GB, free: 61.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0034/2.394, allocations: 0.5454 MB / 0.9231 GB, free: 61.2 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 795 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.004923/2.399, allocations: 486.7 kB / 0.9235 GB, free: 61.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002674/2.402, allocations: 0.551 MB / 0.9241 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08013/2.482, allocations: 35.47 MB / 0.9587 GB, free: 45.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/2.482, allocations: 67.88 kB / 0.9588 GB, free: 45.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001489/2.483, allocations: 64 kB / 0.9588 GB, free: 45.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001847/2.483, allocations: 27.47 kB / 0.9589 GB, free: 45.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3382/2.821, allocations: 55.73 MB / 1.013 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.859e-05/2.821, allocations: 0 / 1.013 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/2.823, allocations: 278.6 kB / 1.014 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05525/2.878, allocations: 20.58 MB / 1.034 GB, free: 64.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001851/2.88, allocations: 7.469 kB / 1.034 GB, free: 64.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4331/3.313, allocations: 124.6 MB / 1.155 GB, free: 79.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/3.313, allocations: 0 / 1.155 GB, free: 79.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08926/3.402, allocations: 48.01 MB / 1.202 GB, free: 71.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007349/3.41, allocations: 2.359 MB / 1.205 GB, free: 70.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003242/3.413, allocations: 6.766 kB / 1.205 GB, free: 70.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008136/3.421, allocations: 414.9 kB / 1.205 GB, free: 70.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004246/3.425, allocations: 0.5112 MB / 1.205 GB, free: 70.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001706/3.427, allocations: 145.9 kB / 1.206 GB, free: 70.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006452/3.434, allocations: 2.729 MB / 1.208 GB, free: 69.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/3.434, allocations: 0 / 1.208 GB, free: 69.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01841/3.452, allocations: 3.047 MB / 1.211 GB, free: 69.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001952/3.454, allocations: 152 kB / 1.211 GB, free: 69.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.03931/3.493, allocations: 23.56 MB / 1.234 GB, free: 52.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/3.493, allocations: 0 / 1.234 GB, free: 52.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02398/3.517, allocations: 13.25 MB / 1.247 GB, free: 40.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006405/3.524, allocations: 0.5418 MB / 1.248 GB, free: 40.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03924/3.563, allocations: 20.74 MB / 1.268 GB, free: 22.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009265/3.572, allocations: 5.311 MB / 1.273 GB, free: 18.15 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.006656/3.579, allocations: 2.138 MB / 1.275 GB, free: 16.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/3.58, allocations: 282.2 kB / 1.276 GB, free: 16.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/3.58, allocations: 0 / 1.276 GB, free: 16.55 MB / 394.7 MB Notification: Performance of Templates: time 0.7747/4.355, allocations: 212.1 MB / 1.483 GB, free: 83.3 MB / 410.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)