Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.Examples.SimpleExamples.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank") translateModel(ThermoSysPro.Examples.SimpleExamples.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8087/0.8087, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.000251, allocations: 19.98 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1514, allocations: 31.32 MB / 236 MB, free: 3.887 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestTank): time 1.599/1.751, allocations: 294.2 MB / 0.5178 GB, free: 7.809 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.541/2.292, allocations: 188.4 MB / 0.7017 GB, free: 1.629 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004911/2.292, allocations: 7.469 kB / 0.7017 GB, free: 1.629 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005545/2.293, allocations: 164.6 kB / 0.7019 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0005909/2.294, allocations: 261.7 kB / 0.7021 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02672/2.32, allocations: 8.916 MB / 0.7108 GB, free: 1.387 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001763/2.322, allocations: 1.139 MB / 0.712 GB, free: 1.383 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006172/2.323, allocations: 416 kB / 0.7124 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000732/2.324, allocations: 428.5 kB / 0.7128 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005582/2.324, allocations: 437.3 kB / 0.7132 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 8.696e-05/2.324, allocations: 49.69 kB / 0.7132 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03743/2.362, allocations: 20.12 MB / 0.7329 GB, free: 13.58 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002792/2.362, allocations: 159.4 kB / 0.733 GB, free: 13.55 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007159/2.363, allocations: 437.5 kB / 0.7334 GB, free: 13.52 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02495/2.388, allocations: 10.44 MB / 0.7436 GB, free: 9.637 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/2.388, allocations: 0 / 0.7436 GB, free: 9.637 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.144e-06/2.388, allocations: 0 / 0.7436 GB, free: 9.637 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.287e-05/2.388, allocations: 1.781 kB / 0.7436 GB, free: 9.637 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.007908/2.396, allocations: 2.426 MB / 0.746 GB, free: 8.164 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/2.396, allocations: 9.5 kB / 0.746 GB, free: 8.164 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/2.396, allocations: 96.91 kB / 0.7461 GB, free: 8.113 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005372/2.396, allocations: 445.6 kB / 0.7465 GB, free: 7.789 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.739e-05/2.397, allocations: 80.08 kB / 0.7466 GB, free: 7.758 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.55e-05/2.397, allocations: 65.45 kB / 0.7467 GB, free: 7.754 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/2.398, allocations: 0.9923 MB / 0.7476 GB, free: 7.352 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/2.398, allocations: 1.781 kB / 0.7476 GB, free: 7.352 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/2.398, allocations: 28.22 kB / 0.7477 GB, free: 7.352 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/2.398, allocations: 35.78 kB / 0.7477 GB, free: 7.344 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/2.401, allocations: 0.8321 MB / 0.7485 GB, free: 7.18 MB / 0.573 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.06152/2.462, allocations: 29.75 MB / 0.7776 GB, free: 9.879 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/2.465, allocations: 0.7936 MB / 0.7783 GB, free: 9.312 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/2.466, allocations: 432 kB / 0.7788 GB, free: 9.047 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3176/2.783, allocations: 150.4 MB / 0.9257 GB, free: 2.23 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/2.784, allocations: 39 kB / 0.9257 GB, free: 2.18 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=110): time 4.309e-06/2.784, allocations: 0 / 0.9257 GB, free: 2.18 MB / 0.7605 GB Notification: Performance of matching and sorting (n=110): time 0.007947/2.791, allocations: 2.359 MB / 0.928 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/2.792, allocations: 59.78 kB / 0.9281 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/2.792, allocations: 0.4987 MB / 0.9286 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.236e-05/2.792, allocations: 37.7 kB / 0.9286 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/2.793, allocations: 327.3 kB / 0.9289 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/2.793, allocations: 363.4 kB / 0.9293 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/2.793, allocations: 154.2 kB / 0.9294 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001575/2.793, allocations: 382.8 kB / 0.9298 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/2.794, allocations: 365.7 kB / 0.9301 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/2.795, allocations: 0.533 MB / 0.9306 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/2.798, allocations: 0.9271 MB / 0.9315 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/2.798, allocations: 0 / 0.9315 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003195/2.801, allocations: 1.283 MB / 0.9328 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/2.801, allocations: 8 kB / 0.9328 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/2.801, allocations: 4 kB / 0.9328 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004303/2.805, allocations: 0.9935 MB / 0.9338 GB, free: 9.699 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008213/2.806, allocations: 153 kB / 0.9339 GB, free: 9.555 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/2.809, allocations: 2.701 MB / 0.9366 GB, free: 6.766 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009326/2.809, allocations: 131 kB / 0.9367 GB, free: 6.637 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.44e-05/2.81, allocations: 31.98 kB / 0.9367 GB, free: 6.605 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,PerteDP2.C2.b,PerteDP2.C1.a,Tank1.Cs1.b,Tank1.Ce2.a,Tank1.Cs2.b,Tank1.Ce1.a,PuitsP1.C.a,SourceP1.C.b,VanneReglante1.C2.b,VanneReglante1.C1.a,PerteDP1.C2.b,PerteDP1.C1.a,Tank1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,7), (2,6), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004145/2.81, allocations: 213.5 kB / 0.9369 GB, free: 6.395 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/2.81, allocations: 74.97 kB / 0.937 GB, free: 6.32 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004594/2.815, allocations: 2.938 MB / 0.9399 GB, free: 3.277 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002989/2.818, allocations: 1.279 MB / 0.9411 GB, free: 1.984 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/2.818, allocations: 0 / 0.9411 GB, free: 1.984 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/2.818, allocations: 7.984 kB / 0.9411 GB, free: 1.977 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005603/2.823, allocations: 2.809 MB / 0.9439 GB, free: 15.15 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/2.823, allocations: 0 / 0.9439 GB, free: 15.15 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009314/2.824, allocations: 197.4 kB / 0.944 GB, free: 14.96 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003131/2.828, allocations: 0.8834 MB / 0.9449 GB, free: 14.07 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.177e-05/2.828, allocations: 25.95 kB / 0.9449 GB, free: 14.05 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/2.83, allocations: 2.796 MB / 0.9477 GB, free: 11.16 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/2.83, allocations: 0 / 0.9477 GB, free: 11.16 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.243/3.073, allocations: 25.14 MB / 0.9722 GB, free: 429.9 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/3.073, allocations: 227.5 kB / 0.9724 GB, free: 429.7 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/3.073, allocations: 31.69 kB / 0.9725 GB, free: 429.7 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006425/3.074, allocations: 69.09 kB / 0.9725 GB, free: 429.7 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/3.074, allocations: 68.88 kB / 0.9726 GB, free: 429.7 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.716e-05/3.074, allocations: 28.86 kB / 0.9726 GB, free: 429.7 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0004939/3.075, allocations: 461.9 kB / 0.9731 GB, free: 429.6 MB / 0.7917 GB Notification: Performance of sort global known variables: time 1.443e-06/3.075, allocations: 1.312 kB / 0.9731 GB, free: 429.6 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.006766/3.081, allocations: 2.818 MB / 0.9758 GB, free: 429.5 MB / 0.7917 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 (64): * Single equations (assignments): 60 * 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.01173/3.093, allocations: 3.336 MB / 0.9791 GB, free: 429.2 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.003444/3.097, allocations: 1.26 MB / 0.9803 GB, free: 429.1 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/3.097, allocations: 0 / 0.9803 GB, free: 429.1 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001945/3.099, allocations: 0.6531 MB / 0.9809 GB, free: 429 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/3.101, allocations: 344.6 kB / 0.9813 GB, free: 429 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004667/3.105, allocations: 3.602 MB / 0.9848 GB, free: 427.2 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/3.106, allocations: 1.086 MB / 0.9858 GB, free: 426.5 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0005827/3.106, allocations: 110.5 kB / 0.9859 GB, free: 426.5 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/3.107, allocations: 71.91 kB / 0.986 GB, free: 426.5 MB / 0.7917 GB Notification: Performance of SimCode: time 1.082e-06/3.107, allocations: 0 / 0.986 GB, free: 426.5 MB / 0.7917 GB Notification: Performance of Templates: time 0.09269/3.199, allocations: 89.41 MB / 1.073 GB, free: 355.4 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestTank.pipe 2>&1)