Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.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.TestSteamDryer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7926/0.7926, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002665, allocations: 11.98 kB / 204 MB, free: 10.14 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1309, allocations: 31.34 MB / 235.4 MB, free: 5.449 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.TestSteamDryer2): time 1.54/1.671, allocations: 293.6 MB / 0.5166 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03838/1.709, allocations: 35.39 MB / 0.5512 GB, free: 9.676 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002996/1.71, allocations: 4 kB / 0.5512 GB, free: 9.672 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/SteamDryer.mo:17:3-19:17:writable] Warning: Connector Cev 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/SteamDryer.mo:20:3-21:51:writable] Warning: Connector Csv 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/SteamDryer.mo:28:3-29:53:writable] Warning: Connector Csl 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/SourcePQ.mo:29:3-30:52: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/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/Sink.mo:17:3-19: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/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/Sink.mo:17:3-19:16: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.0005189/1.71, allocations: 137.5 kB / 0.5513 GB, free: 9.539 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/1.71, allocations: 162.7 kB / 0.5514 GB, free: 9.379 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01841/1.729, allocations: 6.571 MB / 0.5579 GB, free: 2.801 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008055/1.73, allocations: 0.583 MB / 0.5584 GB, free: 2.215 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/1.73, allocations: 253.3 kB / 0.5587 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003492/1.73, allocations: 234.9 kB / 0.5589 GB, free: 1.742 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/1.731, allocations: 226.9 kB / 0.5591 GB, free: 1.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.396e-05/1.731, allocations: 32 kB / 0.5591 GB, free: 1.488 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02605/1.757, allocations: 15.77 MB / 0.5745 GB, free: 1.699 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/1.757, allocations: 91.56 kB / 0.5746 GB, free: 1.609 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003236/1.757, allocations: 262.6 kB / 0.5749 GB, free: 1.352 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01723/1.775, allocations: 8.133 MB / 0.5828 GB, free: 9.199 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.775, allocations: 4 kB / 0.5828 GB, free: 9.195 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.064e-06/1.775, allocations: 0 / 0.5828 GB, free: 9.195 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/1.775, allocations: 0 / 0.5828 GB, free: 9.195 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.003906/1.778, allocations: 1.595 MB / 0.5844 GB, free: 7.551 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.779, allocations: 11.97 kB / 0.5844 GB, free: 7.539 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/1.779, allocations: 64.78 kB / 0.5845 GB, free: 7.477 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/1.779, allocations: 294.6 kB / 0.5847 GB, free: 7.148 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/1.779, allocations: 41 kB / 0.5848 GB, free: 7.109 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/1.779, allocations: 40 kB / 0.5848 GB, free: 7.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008409/1.78, allocations: 0.5884 MB / 0.5854 GB, free: 6.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/1.78, allocations: 3.938 kB / 0.5854 GB, free: 6.426 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/1.78, allocations: 16 kB / 0.5854 GB, free: 6.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/1.78, allocations: 23.98 kB / 0.5854 GB, free: 6.387 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/1.781, allocations: 355.9 kB / 0.5858 GB, free: 6.043 MB / 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.00262/1.783, allocations: 3.509 MB / 0.5892 GB, free: 2.141 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/1.784, allocations: 283.2 kB / 0.5895 GB, free: 1.855 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/1.784, allocations: 185.9 kB / 0.5896 GB, free: 1.672 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1552/1.939, allocations: 80.48 MB / 0.6682 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/1.939, allocations: 30.56 kB / 0.6683 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=70): time 2.786e-06/1.939, allocations: 3.938 kB / 0.6683 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70): time 0.00294/1.942, allocations: 1.238 MB / 0.6695 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/1.942, allocations: 77.11 kB / 0.6696 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/1.943, allocations: 282.9 kB / 0.6698 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/1.943, allocations: 33.7 kB / 0.6699 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/1.943, allocations: 212.9 kB / 0.6701 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/1.943, allocations: 224.5 kB / 0.6703 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/1.943, allocations: 89.67 kB / 0.6704 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001402/1.943, allocations: 354.8 kB / 0.6707 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/1.944, allocations: 124.6 kB / 0.6708 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/1.944, allocations: 243.8 kB / 0.671 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00053/1.944, allocations: 411.7 kB / 0.6714 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.944, allocations: 4 kB / 0.6714 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001155/1.946, allocations: 0.6808 MB / 0.6721 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/1.946, allocations: 8 kB / 0.6721 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.946, allocations: 4.375 kB / 0.6721 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/1.947, allocations: 0.7845 MB / 0.6729 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.226e-05/1.947, allocations: 11.94 kB / 0.6729 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/1.949, allocations: 2.12 MB / 0.675 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/1.949, allocations: 51.38 kB / 0.675 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/1.949, allocations: 16 kB / 0.675 GB, free: 1.043 MB / 0.5606 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 (sink.C.a,singularPressureLoss3.C2.b,singularPressureLoss3.C1.a,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,sinkP.C.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,sourceQ.C.b,steamDryer.Csl.b,steamDryer.Csv.b,steamDryer.Cev.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * 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), (2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001999/1.949, allocations: 178.2 kB / 0.6752 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.072e-05/1.949, allocations: 39.44 kB / 0.6752 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/1.951, allocations: 1.184 MB / 0.6764 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001257/1.952, allocations: 0.8732 MB / 0.6772 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.952, allocations: 3.938 kB / 0.6773 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/1.952, allocations: 3.984 kB / 0.6773 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/1.955, allocations: 1.998 MB / 0.6792 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/1.955, allocations: 0 / 0.6792 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/1.955, allocations: 63.92 kB / 0.6793 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/1.956, allocations: 0.8067 MB / 0.6801 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/1.956, allocations: 15.94 kB / 0.6801 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/1.958, allocations: 2.199 MB / 0.6822 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.958, allocations: 0 / 0.6822 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/1.959, allocations: 1.025 MB / 0.6832 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/1.96, allocations: 172.1 kB / 0.6834 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/1.96, allocations: 12 kB / 0.6834 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/1.96, allocations: 15.94 kB / 0.6834 GB, free: 8.219 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/1.96, allocations: 40.52 kB / 0.6835 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/1.96, allocations: 19.98 kB / 0.6835 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001778/1.96, allocations: 197.9 kB / 0.6837 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.96, allocations: 0 / 0.6837 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002822/1.963, allocations: 1.159 MB / 0.6848 GB, free: 6.805 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 (45): * Single equations (assignments): 42 * 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), (2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005009/1.968, allocations: 1.668 MB / 0.6864 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001421/1.97, allocations: 0.7694 MB / 0.6872 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.97, allocations: 4 kB / 0.6872 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007928/1.97, allocations: 439.2 kB / 0.6876 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/1.972, allocations: 224.5 kB / 0.6878 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/1.973, allocations: 1.393 MB / 0.6892 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/1.974, allocations: 0.9125 MB / 0.6901 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001783/1.974, allocations: 43.27 kB / 0.6901 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/1.974, allocations: 31.44 kB / 0.6901 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of SimCode: time 3.91e-07/1.974, allocations: 0 / 0.6901 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of Templates: time 0.1931/2.167, allocations: 45.42 MB / 0.7345 GB, free: 204.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamDryer2.pipe 2>&1)