Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009796/0.0009799, allocations: 163.9 kB / 12.72 MB, free: 2.59 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.236/1.236, allocations: 170.6 MB / 183.8 MB, free: 11.44 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.001692/0.001692, allocations: 101.6 kB / 223.2 MB, free: 4.055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.119e-05, allocations: 7.984 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08676, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7781/0.8649, allocations: 311.1 MB / 0.6042 GB, free: 7.512 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.8651, allocations: 79.42 kB / 0.6043 GB, free: 7.473 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4932/1.358, allocations: 130.3 MB / 0.7315 GB, free: 32.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.358, allocations: 4 kB / 0.7315 GB, free: 32.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.79e-05/1.358, allocations: 23.94 kB / 0.7316 GB, free: 32.57 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002567/1.361, allocations: 1.069 MB / 0.7326 GB, free: 31.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.361, allocations: 12.03 kB / 0.7326 GB, free: 31.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003452/1.361, allocations: 91.05 kB / 0.7327 GB, free: 31.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/1.363, allocations: 0.6557 MB / 0.7333 GB, free: 30.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/1.363, allocations: 108.7 kB / 0.7334 GB, free: 30.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/1.363, allocations: 55.98 kB / 0.7335 GB, free: 30.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/1.364, allocations: 0.8855 MB / 0.7344 GB, free: 29.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/1.365, allocations: 0 / 0.7344 GB, free: 29.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.499e-05/1.365, allocations: 23.98 kB / 0.7344 GB, free: 29.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.085e-05/1.365, allocations: 49.28 kB / 0.7344 GB, free: 29.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/1.366, allocations: 0.821 MB / 0.7352 GB, free: 28.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004837/1.371, allocations: 3.317 MB / 0.7385 GB, free: 25.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000809/1.371, allocations: 0.6537 MB / 0.7391 GB, free: 24.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000452/1.372, allocations: 358.3 kB / 0.7394 GB, free: 24.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002507/1.374, allocations: 2.07 MB / 0.7415 GB, free: 21.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/1.375, allocations: 47.06 kB / 0.7415 GB, free: 21.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.194e-06/1.375, allocations: 0 / 0.7415 GB, free: 21.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.004332/1.379, allocations: 2.203 MB / 0.7437 GB, free: 19.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/1.379, allocations: 89.67 kB / 0.7438 GB, free: 19.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007284/1.38, allocations: 0.5972 MB / 0.7443 GB, free: 18.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/1.38, allocations: 37.7 kB / 0.7444 GB, free: 18.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/1.38, allocations: 344.4 kB / 0.7447 GB, free: 18.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/1.38, allocations: 216.8 kB / 0.7449 GB, free: 18.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/1.38, allocations: 16 kB / 0.7449 GB, free: 18.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/1.38, allocations: 386.8 kB / 0.7453 GB, free: 17.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004521/1.381, allocations: 349.4 kB / 0.7456 GB, free: 17.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/1.381, allocations: 0.4929 MB / 0.7461 GB, free: 17.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/1.382, allocations: 405.9 kB / 0.7465 GB, free: 16.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.382, allocations: 0 / 0.7465 GB, free: 16.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001591/1.383, allocations: 1.132 MB / 0.7476 GB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004323/1.384, allocations: 1.568 MB / 0.7491 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/1.384, allocations: 4 kB / 0.7491 GB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/1.385, allocations: 444.4 kB / 0.7496 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/1.386, allocations: 155.8 kB / 0.7497 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/1.387, allocations: 1.024 MB / 0.7507 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000678/1.387, allocations: 43.97 kB / 0.7507 GB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.129e-05/1.387, allocations: 31.98 kB / 0.7508 GB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/1.387, allocations: 4 kB / 0.7508 GB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001343/1.389, allocations: 0.9206 MB / 0.7517 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/1.389, allocations: 4.531 kB / 0.7517 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/1.389, allocations: 244.8 kB / 0.7519 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/1.39, allocations: 167.7 kB / 0.7521 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005701/1.391, allocations: 0.8099 MB / 0.7529 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006085/1.391, allocations: 47.78 kB / 0.7529 GB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.53e-05/1.391, allocations: 35.98 kB / 0.7529 GB, free: 9.809 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002281/1.391, allocations: 148.9 kB / 0.7531 GB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/1.392, allocations: 75.16 kB / 0.7532 GB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/1.393, allocations: 1.086 MB / 0.7542 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/1.393, allocations: 8.094 kB / 0.7542 GB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.393, allocations: 3.938 kB / 0.7542 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/1.393, allocations: 7.938 kB / 0.7542 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/1.396, allocations: 1.993 MB / 0.7562 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/1.396, allocations: 0 / 0.7562 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005401/1.397, allocations: 119.8 kB / 0.7563 GB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/1.398, allocations: 436.4 kB / 0.7567 GB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/1.398, allocations: 23.98 kB / 0.7567 GB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009502/1.399, allocations: 1.022 MB / 0.7577 GB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.399, allocations: 3.953 kB / 0.7577 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/1.401, allocations: 1.576 MB / 0.7593 GB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005459/1.401, allocations: 252.2 kB / 0.7595 GB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/1.402, allocations: 20 kB / 0.7595 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007047/1.402, allocations: 43.95 kB / 0.7596 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/1.402, allocations: 60.64 kB / 0.7596 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.553e-05/1.403, allocations: 27.98 kB / 0.7597 GB, free: 2.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005976/1.403, allocations: 475.1 kB / 0.7601 GB, free: 2.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.403, allocations: 0 / 0.7601 GB, free: 2.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002101/1.405, allocations: 0.6361 MB / 0.7607 GB, free: 1.688 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00116/1.406, allocations: 0.5865 MB / 0.7613 GB, free: 1.094 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2042/1.611, allocations: 1.346 MB / 0.7626 GB, free: 79.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.611, allocations: 1.375 kB / 0.7626 GB, free: 79.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/1.612, allocations: 468.5 kB / 0.7631 GB, free: 79.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/1.614, allocations: 348.3 kB / 0.7634 GB, free: 79.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/1.617, allocations: 1.348 MB / 0.7647 GB, free: 78.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006576/1.618, allocations: 1.013 MB / 0.7657 GB, free: 78.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00162/1.62, allocations: 366.8 kB / 0.7661 GB, free: 78.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/1.62, allocations: 67.06 kB / 0.7661 GB, free: 78.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.754e-06/1.62, allocations: 0 / 0.7661 GB, free: 78.1 MB / 362.7 MB Notification: Performance of Templates: time 0.03797/1.658, allocations: 22.65 MB / 0.7882 GB, free: 77.23 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)