Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.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.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4") translateModel(ThermoSysPro.Examples.SimpleExamples.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7986/0.7986, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 15.98 kB / 204 MB, free: 10.1 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 31.33 MB / 235.3 MB, free: 5.445 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.TestJunctions4): time 1.553/1.69, allocations: 293.7 MB / 0.5166 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04193/1.732, allocations: 37.79 MB / 0.5535 GB, free: 7.195 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/1.732, allocations: 4 kB / 0.5535 GB, free: 7.191 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/DeheaterMixer2.mo:14:3-16:17:writable] Warning: Connector Ce_mix 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/Junctions/DeheaterMixer2.mo:17:3-18:44:writable] Warning: Connector Cs 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/Junctions/DeheaterMixer2.mo:20:3-22:17:writable] Warning: Connector Ce 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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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/SinkQ.mo:24:3-26:16: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/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/Source.mo:17:3-18:52: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.0004154/1.732, allocations: 113.3 kB / 0.5537 GB, free: 7.082 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/1.733, allocations: 170.7 kB / 0.5538 GB, free: 6.914 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01848/1.751, allocations: 7.216 MB / 0.5609 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007004/1.752, allocations: 0.6142 MB / 0.5615 GB, free: 15.08 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/1.752, allocations: 257.5 kB / 0.5617 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/1.752, allocations: 238.9 kB / 0.5619 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/1.753, allocations: 234.8 kB / 0.5622 GB, free: 14.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/1.753, allocations: 28 kB / 0.5622 GB, free: 14.35 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02904/1.782, allocations: 17.74 MB / 0.5795 GB, free: 12.58 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/1.782, allocations: 95.55 kB / 0.5796 GB, free: 12.49 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/1.782, allocations: 262.6 kB / 0.5799 GB, free: 12.23 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01766/1.8, allocations: 8.725 MB / 0.5884 GB, free: 3.484 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.8, allocations: 0 / 0.5884 GB, free: 3.484 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.31e-07/1.8, allocations: 0 / 0.5884 GB, free: 3.484 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/1.8, allocations: 4 kB / 0.5884 GB, free: 3.48 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003992/1.804, allocations: 1.673 MB / 0.59 GB, free: 1.754 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/1.804, allocations: 8.031 kB / 0.59 GB, free: 1.746 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/1.804, allocations: 59.28 kB / 0.5901 GB, free: 1.688 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/1.804, allocations: 302.1 kB / 0.5904 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.763e-05/1.805, allocations: 66.64 kB / 0.5904 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/1.805, allocations: 44 kB / 0.5905 GB, free: 1.238 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007852/1.805, allocations: 0.5845 MB / 0.591 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/1.805, allocations: 4 kB / 0.591 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/1.805, allocations: 21.59 kB / 0.5911 GB, free: 0.582 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/1.806, allocations: 27.86 kB / 0.5911 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005077/1.806, allocations: 356 kB / 0.5914 GB, free: 212 kB / 478.1 MB 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.01998/1.826, allocations: 11.93 MB / 0.6031 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003904/1.826, allocations: 255 kB / 0.6033 GB, free: 2.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002355/1.827, allocations: 173.9 kB / 0.6035 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3756/2.202, allocations: 119 MB / 0.7197 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/2.202, allocations: 31.56 kB / 0.7197 GB, free: 209.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 2.365e-06/2.202, allocations: 3 kB / 0.7197 GB, free: 209.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.002485/2.205, allocations: 1.116 MB / 0.7208 GB, free: 209.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/2.205, allocations: 59.39 kB / 0.7209 GB, free: 209.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/2.205, allocations: 289.4 kB / 0.7212 GB, free: 209.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/2.205, allocations: 28.52 kB / 0.7212 GB, free: 209.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/2.205, allocations: 223.3 kB / 0.7214 GB, free: 209.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/2.205, allocations: 217.6 kB / 0.7216 GB, free: 209 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/2.206, allocations: 90.66 kB / 0.7217 GB, free: 209 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.39e-05/2.206, allocations: 363.7 kB / 0.7221 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/2.206, allocations: 123.1 kB / 0.7222 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/2.206, allocations: 230.6 kB / 0.7224 GB, free: 208.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/2.206, allocations: 399.6 kB / 0.7228 GB, free: 208.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/2.206, allocations: 3.938 kB / 0.7228 GB, free: 208.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009596/2.207, allocations: 0.6212 MB / 0.7234 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/2.207, allocations: 3.875 kB / 0.7234 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/2.207, allocations: 5.094 kB / 0.7234 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/2.209, allocations: 0.591 MB / 0.724 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.148e-05/2.209, allocations: 7.938 kB / 0.724 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/2.21, allocations: 2.002 MB / 0.7259 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/2.211, allocations: 52.94 kB / 0.726 GB, free: 206.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/2.211, allocations: 17.7 kB / 0.726 GB, free: 206.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 12 (source.C.b,sourceP.C.b,sinkP.C.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,singularPressureLoss.C2.b,singularPressureLoss.C1.a,deheaterMixer2_1.Ce.a,deheaterMixer2_1.Cs.b,deheaterMixer2_1.Ce_mix.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001536/2.211, allocations: 173.8 kB / 0.7262 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/2.211, allocations: 41.06 kB / 0.7262 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/2.212, allocations: 1.44 MB / 0.7276 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008763/2.213, allocations: 0.752 MB / 0.7283 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/2.213, allocations: 3.938 kB / 0.7283 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/2.213, allocations: 5.062 kB / 0.7283 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/2.215, allocations: 1.86 MB / 0.7302 GB, free: 205.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/2.215, allocations: 0 / 0.7302 GB, free: 205.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/2.215, allocations: 63.11 kB / 0.7302 GB, free: 205.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/2.217, allocations: 0.5808 MB / 0.7308 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/2.217, allocations: 7.812 kB / 0.7308 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/2.218, allocations: 2.065 MB / 0.7328 GB, free: 203.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/2.218, allocations: 6.438 kB / 0.7328 GB, free: 203.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/2.219, allocations: 0.905 MB / 0.7337 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/2.219, allocations: 163.5 kB / 0.7339 GB, free: 203.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/2.219, allocations: 16.88 kB / 0.7339 GB, free: 203.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/2.219, allocations: 23.59 kB / 0.7339 GB, free: 203.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/2.219, allocations: 39.7 kB / 0.7339 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/2.219, allocations: 19.39 kB / 0.734 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001828/2.22, allocations: 240.2 kB / 0.7342 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.22, allocations: 0 / 0.7342 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002708/2.222, allocations: 1.263 MB / 0.7354 GB, free: 203.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (4,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004888/2.227, allocations: 1.799 MB / 0.7372 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001183/2.228, allocations: 0.6961 MB / 0.7379 GB, free: 201.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/2.228, allocations: 0 / 0.7379 GB, free: 201.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006873/2.229, allocations: 369.4 kB / 0.7382 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/2.23, allocations: 240.1 kB / 0.7384 GB, free: 200.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/2.232, allocations: 1.361 MB / 0.7398 GB, free: 199.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/2.232, allocations: 0.907 MB / 0.7407 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001781/2.232, allocations: 53.73 kB / 0.7407 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/2.232, allocations: 31.44 kB / 0.7407 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/2.232, allocations: 4 kB / 0.7407 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04768/2.28, allocations: 47.91 MB / 0.7875 GB, free: 151.6 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe 2>&1)