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.0009889/0.0009889, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.273/1.273, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001783/0.001783, allocations: 103.5 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.821e-05/4.866e-05, allocations: 7.984 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.0846, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.4065, allocations: 83.01 MB / 390.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.4068, allocations: 77.77 kB / 390.7 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5178/0.9246, allocations: 122.4 MB / 0.5011 GB, free: 69.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.9247, allocations: 1.406 kB / 0.5011 GB, free: 69.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003391/0.925, allocations: 120.1 kB / 0.5012 GB, free: 69.52 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.02128/0.9463, allocations: 6.507 MB / 0.5076 GB, free: 67.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.9464, allocations: 6.875 kB / 0.5076 GB, free: 67.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03559/0.982, allocations: 9.425 MB / 0.5168 GB, free: 66.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02332/1.005, allocations: 8.561 MB / 0.5251 GB, free: 61.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003507/1.006, allocations: 435.1 kB / 0.5256 GB, free: 60.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0028/1.009, allocations: 0.5662 MB / 0.5261 GB, free: 60.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02699/1.036, allocations: 14.68 MB / 0.5405 GB, free: 44.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/1.036, allocations: 83.3 kB / 0.5405 GB, free: 44.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009528/1.037, allocations: 266.7 kB / 0.5408 GB, free: 44.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00158/1.039, allocations: 1.438 MB / 0.5422 GB, free: 42.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/1.061, allocations: 12.8 MB / 0.5547 GB, free: 29.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2824/1.343, allocations: 64.57 MB / 0.6177 GB, free: 38.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01825/1.362, allocations: 7.813 MB / 0.6254 GB, free: 38.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005534/1.367, allocations: 5.152 MB / 0.6304 GB, free: 38.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01917/1.386, allocations: 12.97 MB / 0.6431 GB, free: 36.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.054e-05/1.387, allocations: 74.06 kB / 0.6431 GB, free: 36.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 7.304e-06/1.387, allocations: 0 / 0.6431 GB, free: 36.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.2368/1.623, allocations: 79.74 MB / 0.721 GB, free: 3.926 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/1.624, allocations: 271.7 kB / 0.7213 GB, free: 3.609 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/1.635, allocations: 4.714 MB / 0.7259 GB, free: 14.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001993/1.637, allocations: 116.5 kB / 0.726 GB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003615/1.641, allocations: 3.992 MB / 0.7299 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003653/1.645, allocations: 2.11 MB / 0.732 GB, free: 8.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002361/1.647, allocations: 194 kB / 0.7321 GB, free: 8.527 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0009717/1.648, allocations: 0.7108 MB / 0.7328 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01337/1.661, allocations: 8.559 MB / 0.7412 GB, free: 15.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01702/1.678, allocations: 12.64 MB / 0.7535 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2245/1.903, allocations: 10.5 MB / 0.7638 GB, free: 107.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/1.903, allocations: 39.59 kB / 0.7638 GB, free: 107.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0907/1.994, allocations: 40.08 MB / 0.803 GB, free: 100.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001551/1.994, allocations: 66.31 kB / 0.803 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002495/1.994, allocations: 136.6 kB / 0.8031 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06408/2.059, allocations: 21.52 MB / 0.8242 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004999/2.064, allocations: 1.43 MB / 0.8256 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.427/2.491, allocations: 144.4 MB / 0.9666 GB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01151/2.502, allocations: 0.7235 MB / 0.9673 GB, free: 81.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002939/2.505, allocations: 0.5295 MB / 0.9678 GB, free: 81.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * 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 (772): * Single equations (assignments): 765 * 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,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00351/2.509, allocations: 0.7317 MB / 0.9685 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001939/2.511, allocations: 0.5935 MB / 0.9691 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07307/2.584, allocations: 36.12 MB / 1.004 GB, free: 57.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-05/2.584, allocations: 63.17 kB / 1.004 GB, free: 57.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001155/2.584, allocations: 67.31 kB / 1.004 GB, free: 57.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/2.584, allocations: 30.91 kB / 1.005 GB, free: 57.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3337/2.918, allocations: 57.01 MB / 1.06 GB, free: 91.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.661e-05/2.918, allocations: 6.531 kB / 1.06 GB, free: 91.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/2.92, allocations: 269.2 kB / 1.06 GB, free: 91.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05852/2.978, allocations: 20.71 MB / 1.081 GB, free: 91.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002667/2.981, allocations: 98.77 kB / 1.081 GB, free: 91.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4363/3.417, allocations: 132.2 MB / 1.21 GB, free: 88.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/3.417, allocations: 0 / 1.21 GB, free: 88.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09037/3.508, allocations: 48.54 MB / 1.257 GB, free: 76.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00769/3.515, allocations: 2.407 MB / 1.26 GB, free: 75.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002734/3.518, allocations: 98.92 kB / 1.26 GB, free: 75.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007768/3.526, allocations: 0.4951 MB / 1.26 GB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004094/3.53, allocations: 0.5003 MB / 1.261 GB, free: 74.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001471/3.531, allocations: 149.4 kB / 1.261 GB, free: 74.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007696/3.539, allocations: 3.356 MB / 1.264 GB, free: 71.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/3.539, allocations: 0 / 1.264 GB, free: 71.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01845/3.558, allocations: 3.437 MB / 1.267 GB, free: 68.45 MB / 410.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 (148): * Single equations (assignments): 141 * 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.002534/3.56, allocations: 230 kB / 1.268 GB, free: 68.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.04267/3.603, allocations: 24.18 MB / 1.291 GB, free: 46.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/3.603, allocations: 0 / 1.291 GB, free: 46.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02696/3.63, allocations: 13.58 MB / 1.305 GB, free: 34.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006421/3.636, allocations: 0.7019 MB / 1.305 GB, free: 33.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2953/3.932, allocations: 21.06 MB / 1.326 GB, free: 86.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01614/3.948, allocations: 5.31 MB / 1.331 GB, free: 86.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007472/3.956, allocations: 2.078 MB / 1.333 GB, free: 85.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/3.957, allocations: 297.3 kB / 1.333 GB, free: 85.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/3.957, allocations: 5.344 kB / 1.333 GB, free: 85.95 MB / 410.7 MB Notification: Performance of Templates: time 0.532/4.489, allocations: 223.1 MB / 1.551 GB, free: 51.74 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)