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.8195/0.8195, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.000239, allocations: 11.98 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1464, allocations: 31.33 MB / 236 MB, free: 3.891 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.TestJunctions4): time 1.748/1.895, allocations: 293 MB / 0.5166 GB, free: 9.027 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0686/1.964, allocations: 37.79 MB / 0.5535 GB, free: 3.363 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/1.964, allocations: 7.938 kB / 0.5535 GB, free: 3.355 MB / 442.7 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.0006868/1.965, allocations: 120.8 kB / 0.5536 GB, free: 3.238 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007155/1.965, allocations: 162.7 kB / 0.5538 GB, free: 3.078 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02947/1.995, allocations: 7.209 MB / 0.5608 GB, free: 11.87 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001119/1.996, allocations: 0.6336 MB / 0.5614 GB, free: 11.23 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004882/1.997, allocations: 258.3 kB / 0.5617 GB, free: 10.99 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000491/1.997, allocations: 238.9 kB / 0.5619 GB, free: 10.75 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003754/1.997, allocations: 234.9 kB / 0.5621 GB, free: 10.52 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 7.513e-05/1.998, allocations: 28 kB / 0.5622 GB, free: 10.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04335/2.041, allocations: 17.75 MB / 0.5795 GB, free: 8.727 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/2.041, allocations: 87.64 kB / 0.5796 GB, free: 8.641 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004374/2.042, allocations: 270.6 kB / 0.5798 GB, free: 8.375 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02378/2.065, allocations: 8.718 MB / 0.5883 GB, free: 15.63 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/2.065, allocations: 0 / 0.5883 GB, free: 15.63 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.482e-06/2.065, allocations: 0 / 0.5883 GB, free: 15.63 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.316e-06/2.065, allocations: 4 kB / 0.5884 GB, free: 15.63 MB / 490.7 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.00515/2.071, allocations: 1.673 MB / 0.59 GB, free: 13.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/2.071, allocations: 8.031 kB / 0.59 GB, free: 13.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/2.071, allocations: 59.28 kB / 0.59 GB, free: 13.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/2.071, allocations: 306 kB / 0.5903 GB, free: 13.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/2.071, allocations: 58.7 kB / 0.5904 GB, free: 13.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.22e-05/2.071, allocations: 51.94 kB / 0.5904 GB, free: 13.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/2.073, allocations: 0.5845 MB / 0.591 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/2.073, allocations: 7.922 kB / 0.591 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/2.073, allocations: 20 kB / 0.591 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/2.073, allocations: 27.92 kB / 0.5911 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008063/2.074, allocations: 352 kB / 0.5914 GB, free: 12.36 MB / 490.7 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.031/2.105, allocations: 11.92 MB / 0.6031 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/2.105, allocations: 258.9 kB / 0.6033 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/2.105, allocations: 181.9 kB / 0.6035 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4071/2.512, allocations: 119 MB / 0.7197 GB, free: 204.4 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/2.512, allocations: 36.62 kB / 0.7197 GB, free: 204.4 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 2.955e-06/2.512, allocations: 0.5625 kB / 0.7197 GB, free: 204.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=66): time 0.002332/2.515, allocations: 1.125 MB / 0.7208 GB, free: 204 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/2.515, allocations: 58.97 kB / 0.7209 GB, free: 204 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/2.515, allocations: 288.9 kB / 0.7212 GB, free: 203.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/2.515, allocations: 33.75 kB / 0.7212 GB, free: 203.8 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/2.515, allocations: 224.1 kB / 0.7214 GB, free: 203.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 9.302e-05/2.515, allocations: 217.9 kB / 0.7216 GB, free: 203.6 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.813e-05/2.515, allocations: 87.23 kB / 0.7217 GB, free: 203.6 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 5.983e-05/2.515, allocations: 356.5 kB / 0.722 GB, free: 203.3 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/2.516, allocations: 123.5 kB / 0.7221 GB, free: 203.3 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/2.516, allocations: 230.6 kB / 0.7224 GB, free: 203.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/2.516, allocations: 399.3 kB / 0.7227 GB, free: 203 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.516, allocations: 0 / 0.7227 GB, free: 203 MB / 0.573 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008975/2.517, allocations: 0.6163 MB / 0.7233 GB, free: 202.9 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/2.517, allocations: 11.94 kB / 0.7234 GB, free: 202.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/2.517, allocations: 3.969 kB / 0.7234 GB, free: 202.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/2.519, allocations: 0.5824 MB / 0.7239 GB, free: 202.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.987e-05/2.519, allocations: 6.562 kB / 0.7239 GB, free: 202.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/2.52, allocations: 2.007 MB / 0.7259 GB, free: 201.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/2.52, allocations: 63.78 kB / 0.726 GB, free: 201.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/2.52, allocations: 15.77 kB / 0.726 GB, free: 201.3 MB / 0.573 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.0001372/2.52, allocations: 171.3 kB / 0.7261 GB, free: 201.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/2.52, allocations: 35.22 kB / 0.7262 GB, free: 201.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/2.522, allocations: 1.453 MB / 0.7276 GB, free: 200.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008004/2.522, allocations: 0.746 MB / 0.7283 GB, free: 200.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/2.522, allocations: 6.453 kB / 0.7283 GB, free: 200.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/2.523, allocations: 5.625 kB / 0.7283 GB, free: 200.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/2.525, allocations: 1.858 MB / 0.7301 GB, free: 200 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/2.525, allocations: 0 / 0.7301 GB, free: 200 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/2.525, allocations: 62.2 kB / 0.7302 GB, free: 200 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/2.526, allocations: 0.5771 MB / 0.7308 GB, free: 199.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/2.526, allocations: 14.98 kB / 0.7308 GB, free: 199.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/2.527, allocations: 2.062 MB / 0.7328 GB, free: 198.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/2.527, allocations: 0 / 0.7328 GB, free: 198.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/2.529, allocations: 1.819 MB / 0.7346 GB, free: 197.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/2.529, allocations: 166.8 kB / 0.7347 GB, free: 197.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.431e-05/2.529, allocations: 15.88 kB / 0.7347 GB, free: 197.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/2.529, allocations: 22.48 kB / 0.7348 GB, free: 197.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/2.529, allocations: 35.52 kB / 0.7348 GB, free: 197.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/2.529, allocations: 16.12 kB / 0.7348 GB, free: 197.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0001807/2.529, allocations: 244.2 kB / 0.7351 GB, free: 197 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.11e-07/2.529, allocations: 0 / 0.7351 GB, free: 197 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002666/2.532, allocations: 1.308 MB / 0.7363 GB, free: 196.1 MB / 0.573 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.004187/2.536, allocations: 1.797 MB / 0.7381 GB, free: 194.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001137/2.537, allocations: 0.6907 MB / 0.7388 GB, free: 194.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.537, allocations: 4.062 kB / 0.7388 GB, free: 194.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006419/2.538, allocations: 363.2 kB / 0.7391 GB, free: 193.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/2.539, allocations: 255.8 kB / 0.7394 GB, free: 193.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/2.541, allocations: 1.805 MB / 0.7411 GB, free: 192.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/2.541, allocations: 0.9304 MB / 0.742 GB, free: 191.2 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001562/2.541, allocations: 43.78 kB / 0.7421 GB, free: 191.1 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/2.541, allocations: 31.44 kB / 0.7421 GB, free: 191.1 MB / 0.573 GB Notification: Performance of SimCode: time 2.4e-07/2.541, allocations: 4 kB / 0.7421 GB, free: 191.1 MB / 0.573 GB Notification: Performance of Templates: time 0.04854/2.59, allocations: 48.37 MB / 0.7893 GB, free: 143.6 MB / 0.573 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)