Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8366/0.8366, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.518e-05/1.52e-05, allocations: 4 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1779, allocations: 31.97 MB / 236.8 MB, free: 5.426 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank): time 1.66/1.838, allocations: 296.4 MB / 0.5207 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5602/2.398, allocations: 195.2 MB / 0.7113 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/2.399, allocations: 16.59 kB / 0.7113 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005739/2.4, allocations: 111.2 kB / 0.7114 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001564/2.402, allocations: 356 kB / 0.7117 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03578/2.437, allocations: 11.21 MB / 0.7227 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002093/2.439, allocations: 1.524 MB / 0.7242 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008048/2.44, allocations: 0.6459 MB / 0.7248 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006666/2.441, allocations: 0.5152 MB / 0.7253 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005943/2.442, allocations: 0.6042 MB / 0.7259 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001113/2.442, allocations: 70.81 kB / 0.726 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04128/2.483, allocations: 22.77 MB / 0.7482 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005085/2.484, allocations: 243.7 kB / 0.7484 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001071/2.485, allocations: 0.6266 MB / 0.7491 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04263/2.527, allocations: 12.41 MB / 0.7612 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/2.527, allocations: 8.109 kB / 0.7612 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.457e-06/2.527, allocations: 0 / 0.7612 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.279e-05/2.527, allocations: 0 / 0.7612 GB, free: 12.47 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.009508/2.537, allocations: 2.93 MB / 0.764 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/2.537, allocations: 9.375 kB / 0.764 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/2.537, allocations: 154.8 kB / 0.7642 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009706/2.538, allocations: 0.6318 MB / 0.7648 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/2.538, allocations: 124.3 kB / 0.7649 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002722/2.539, allocations: 124.9 kB / 0.765 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/2.541, allocations: 1.487 MB / 0.7665 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/2.542, allocations: 5.812 kB / 0.7665 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/2.542, allocations: 53.16 kB / 0.7666 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/2.542, allocations: 32.62 kB / 0.7666 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002928/2.545, allocations: 1.382 MB / 0.7679 GB, free: 9.289 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02757/2.572, allocations: 20.11 MB / 0.7876 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/2.575, allocations: 1.036 MB / 0.7886 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/2.576, allocations: 373.6 kB / 0.7889 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9655/3.541, allocations: 286.5 MB / 1.069 GB, free: 179.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/3.541, allocations: 37.38 kB / 1.069 GB, free: 179.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=58): time 2.865e-06/3.541, allocations: 0 / 1.069 GB, free: 179.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=58): time 0.006596/3.548, allocations: 2.062 MB / 1.071 GB, free: 178 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/3.548, allocations: 81.67 kB / 1.071 GB, free: 177.9 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008561/3.549, allocations: 0.804 MB / 1.072 GB, free: 177.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/3.549, allocations: 37.2 kB / 1.072 GB, free: 177.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/3.549, allocations: 0.6048 MB / 1.072 GB, free: 176.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/3.549, allocations: 212.2 kB / 1.072 GB, free: 176.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/3.55, allocations: 99.47 kB / 1.073 GB, free: 176.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/3.55, allocations: 394 kB / 1.073 GB, free: 176.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009212/3.551, allocations: 380.5 kB / 1.073 GB, free: 176 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/3.552, allocations: 0.7865 MB / 1.074 GB, free: 175.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/3.554, allocations: 1.195 MB / 1.075 GB, free: 174 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/3.554, allocations: 5.203 kB / 1.075 GB, free: 174 MB / 0.8106 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003098/3.557, allocations: 1.509 MB / 1.077 GB, free: 172.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/3.557, allocations: 17.16 kB / 1.077 GB, free: 172.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/3.557, allocations: 12 kB / 1.077 GB, free: 172.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004373/3.561, allocations: 0.8952 MB / 1.078 GB, free: 172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/3.562, allocations: 296.8 kB / 1.078 GB, free: 171.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/3.564, allocations: 2.502 MB / 1.08 GB, free: 169.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/3.565, allocations: 186.5 kB / 1.081 GB, free: 169.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.79e-05/3.565, allocations: 62.61 kB / 1.081 GB, free: 169.1 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (Tank1.Cs1.ftype,Tank1.Cs2.ftype,Tank1.Ce2.ftype,SourceP1.C.ftype,Tank1.fluids[1],PerteDP1.fluid,VanneReglante1.fluid,PuitsP1.fluid,PerteDP2.fluid,PuitsP2.fluid,Tank1.fluid1,SourceP1.fluid1,Tank1.Cs1.diff_on_1,Tank1.Cs2.diff_on_1,Tank1.Ce2.diff_on_2,Tank1.Ce1.diff_on_2,SourceP1.C.diff_on_2,Tank1.Ce2.diff_on_1,VanneReglante1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,6), (2,7), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000433/3.565, allocations: 273.9 kB / 1.081 GB, free: 168.9 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/3.566, allocations: 98.38 kB / 1.081 GB, free: 168.8 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003085/3.569, allocations: 1.19 MB / 1.082 GB, free: 167.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/3.569, allocations: 8 kB / 1.082 GB, free: 167.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/3.569, allocations: 0 / 1.082 GB, free: 167.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/3.569, allocations: 3.984 kB / 1.082 GB, free: 167.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/3.573, allocations: 2.178 MB / 1.084 GB, free: 166.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/3.573, allocations: 3.984 kB / 1.084 GB, free: 166.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008228/3.573, allocations: 181.2 kB / 1.084 GB, free: 166 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003034/3.576, allocations: 0.657 MB / 1.085 GB, free: 165.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/3.576, allocations: 18.98 kB / 1.085 GB, free: 165.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/3.578, allocations: 2.505 MB / 1.088 GB, free: 162.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/3.578, allocations: 0 / 1.088 GB, free: 162.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/3.582, allocations: 1.606 MB / 1.089 GB, free: 161.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000349/3.582, allocations: 252.7 kB / 1.089 GB, free: 161.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.901e-05/3.582, allocations: 15.06 kB / 1.089 GB, free: 161.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006363/3.583, allocations: 70.67 kB / 1.089 GB, free: 161.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/3.583, allocations: 57.67 kB / 1.089 GB, free: 161.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/3.583, allocations: 27.42 kB / 1.089 GB, free: 161.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005274/3.584, allocations: 0.5078 MB / 1.09 GB, free: 160.9 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.71e-07/3.584, allocations: 0 / 1.09 GB, free: 160.9 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005451/3.589, allocations: 2.014 MB / 1.092 GB, free: 159.2 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Tank1.z,Tank1.h) * 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 (38): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,8), (2,9), (2,9), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009057/3.598, allocations: 2.922 MB / 1.095 GB, free: 156.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002902/3.601, allocations: 1.031 MB / 1.096 GB, free: 156.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/3.601, allocations: 0 / 1.096 GB, free: 156.1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/3.602, allocations: 497.1 kB / 1.096 GB, free: 155.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/3.604, allocations: 183.8 kB / 1.096 GB, free: 155.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/3.606, allocations: 2.35 MB / 1.099 GB, free: 153.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/3.607, allocations: 1.052 MB / 1.1 GB, free: 152.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005268/3.607, allocations: 147 kB / 1.1 GB, free: 152.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/3.607, allocations: 71.11 kB / 1.1 GB, free: 152.1 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/3.607, allocations: 0 / 1.1 GB, free: 152.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.06883/3.676, allocations: 61.09 MB / 1.16 GB, free: 91.32 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe 2>&1) Environment - environmentSimulation: