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.7931/0.7931, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.000273, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1345, allocations: 31.34 MB / 235.3 MB, free: 5.457 MB / 190.1 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.537/1.672, allocations: 294.9 MB / 0.5178 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4482/2.12, allocations: 188.4 MB / 0.7018 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003379/2.12, allocations: 5.062 kB / 0.7018 GB, free: 3.461 MB / 0.5762 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.0005265/2.121, allocations: 155.1 kB / 0.7019 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00049/2.121, allocations: 264.8 kB / 0.7022 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0237/2.145, allocations: 8.916 MB / 0.7109 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001633/2.147, allocations: 1.116 MB / 0.712 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000753/2.148, allocations: 418.9 kB / 0.7124 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009646/2.148, allocations: 427.4 kB / 0.7128 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007993/2.149, allocations: 438.1 kB / 0.7132 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002273/2.15, allocations: 47.94 kB / 0.7132 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03235/2.182, allocations: 20.09 MB / 0.7329 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002804/2.182, allocations: 159.2 kB / 0.733 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006903/2.183, allocations: 443.8 kB / 0.7334 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02162/2.205, allocations: 10.45 MB / 0.7436 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/2.205, allocations: 0 / 0.7436 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.894e-06/2.205, allocations: 0 / 0.7436 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.896e-05/2.205, allocations: 1.75 kB / 0.7436 GB, free: 15.62 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.007076/2.212, allocations: 2.433 MB / 0.746 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/2.212, allocations: 10.25 kB / 0.746 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/2.212, allocations: 93.62 kB / 0.7461 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/2.212, allocations: 439.8 kB / 0.7465 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-05/2.212, allocations: 80.2 kB / 0.7466 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.171e-05/2.213, allocations: 67 kB / 0.7467 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/2.214, allocations: 0.9893 MB / 0.7476 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/2.214, allocations: 3 kB / 0.7476 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.645e-05/2.214, allocations: 33.44 kB / 0.7477 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/2.214, allocations: 33.62 kB / 0.7477 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/2.216, allocations: 0.832 MB / 0.7485 GB, free: 13.17 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.05373/2.27, allocations: 29.75 MB / 0.7776 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/2.273, allocations: 0.7874 MB / 0.7783 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009894/2.274, allocations: 432.1 kB / 0.7787 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2887/2.562, allocations: 150.4 MB / 0.9257 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/2.562, allocations: 38.81 kB / 0.9257 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=110): time 2.395e-06/2.562, allocations: 0 / 0.9257 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=110): time 0.007845/2.57, allocations: 2.354 MB / 0.928 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/2.57, allocations: 59.78 kB / 0.9281 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006489/2.571, allocations: 0.5042 MB / 0.9285 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/2.571, allocations: 36.64 kB / 0.9286 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/2.571, allocations: 326.4 kB / 0.9289 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/2.572, allocations: 358.3 kB / 0.9292 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/2.572, allocations: 163.5 kB / 0.9294 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001449/2.572, allocations: 382.8 kB / 0.9298 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000945/2.573, allocations: 363.7 kB / 0.9301 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/2.574, allocations: 0.532 MB / 0.9306 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/2.576, allocations: 0.9317 MB / 0.9315 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/2.576, allocations: 4 kB / 0.9315 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003078/2.579, allocations: 1.281 MB / 0.9328 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/2.579, allocations: 4 kB / 0.9328 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/2.579, allocations: 16.64 kB / 0.9328 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004754/2.584, allocations: 0.9849 MB / 0.9338 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007752/2.585, allocations: 153.2 kB / 0.9339 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002553/2.587, allocations: 2.711 MB / 0.9366 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007891/2.588, allocations: 135 kB / 0.9367 GB, free: 5.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/2.588, allocations: 27.98 kB / 0.9367 GB, free: 5.762 MB / 0.7794 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.0003256/2.589, allocations: 214.5 kB / 0.9369 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/2.589, allocations: 71.06 kB / 0.937 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/2.593, allocations: 2.935 MB / 0.9399 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003054/2.596, allocations: 1.279 MB / 0.9411 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/2.596, allocations: 4 kB / 0.9411 GB, free: 1.145 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/2.596, allocations: 7.969 kB / 0.9411 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/2.602, allocations: 2.805 MB / 0.9439 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/2.602, allocations: 3.984 kB / 0.9439 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/2.603, allocations: 189.8 kB / 0.944 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/2.606, allocations: 0.8844 MB / 0.9449 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.365e-05/2.606, allocations: 25.19 kB / 0.9449 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/2.608, allocations: 2.795 MB / 0.9477 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/2.608, allocations: 0 / 0.9477 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/2.613, allocations: 1.971 MB / 0.9496 GB, free: 8.34 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/2.613, allocations: 223.7 kB / 0.9498 GB, free: 8.102 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/2.613, allocations: 27.84 kB / 0.9498 GB, free: 8.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006766/2.614, allocations: 71.84 kB / 0.9499 GB, free: 8.004 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/2.614, allocations: 68.89 kB / 0.95 GB, free: 7.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/2.614, allocations: 31.98 kB / 0.95 GB, free: 7.906 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005196/2.615, allocations: 462 kB / 0.9504 GB, free: 7.457 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/2.615, allocations: 1.203 kB / 0.9504 GB, free: 7.457 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004036/2.619, allocations: 1.628 MB / 0.952 GB, free: 5.828 MB / 0.795 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.007318/2.626, allocations: 2.359 MB / 0.9543 GB, free: 3.758 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003225/2.629, allocations: 1.263 MB / 0.9556 GB, free: 2.488 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/2.629, allocations: 0 / 0.9556 GB, free: 2.488 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001822/2.631, allocations: 0.6448 MB / 0.9562 GB, free: 1.852 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/2.633, allocations: 349.6 kB / 0.9565 GB, free: 1.516 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/2.636, allocations: 2.149 MB / 0.9586 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/2.636, allocations: 1.025 MB / 0.9596 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004115/2.637, allocations: 93.48 kB / 0.9597 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/2.637, allocations: 55.42 kB / 0.9598 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of SimCode: time 1.142e-06/2.637, allocations: 0 / 0.9598 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of Templates: time 0.2208/2.858, allocations: 59.88 MB / 1.018 GB, free: 439.9 MB / 0.8106 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)