Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7278/0.7278, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003227, allocations: 13.3 kB / 237.7 MB, free: 1.879 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04574/0.04608, allocations: 31.34 MB / 269 MB, free: 7.168 MB / 222.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.379/1.425, allocations: 294.7 MB / 0.5505 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03389/1.459, allocations: 34.85 MB / 0.5845 GB, free: 9.879 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/1.459, allocations: 4 kB / 0.5845 GB, free: 9.875 MB / 478.1 MB [/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/PressureLosses/DynamicCheckValve.mo:61:3-63: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/DynamicCheckValve.mo:64:3-65:51:writable] Warning: Connector C2 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.0003813/1.46, allocations: 120.1 kB / 0.5846 GB, free: 9.758 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003086/1.46, allocations: 138.9 kB / 0.5847 GB, free: 9.621 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02069/1.481, allocations: 9.755 MB / 0.5943 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005217/1.481, allocations: 446.6 kB / 0.5947 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/1.482, allocations: 156.5 kB / 0.5948 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/1.482, allocations: 183.2 kB / 0.595 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/1.482, allocations: 171.2 kB / 0.5952 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.989e-05/1.482, allocations: 28 kB / 0.5952 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.026/1.508, allocations: 17.9 MB / 0.6127 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/1.508, allocations: 71.69 kB / 0.6128 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001959/1.508, allocations: 175 kB / 0.6129 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01383/1.522, allocations: 8.496 MB / 0.6212 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/1.522, allocations: 0 / 0.6212 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/1.522, allocations: 3.938 kB / 0.6212 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.732e-06/1.522, allocations: 0 / 0.6212 GB, free: 4.207 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003115/1.525, allocations: 1.544 MB / 0.6227 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/1.526, allocations: 15.89 kB / 0.6227 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/1.526, allocations: 43.38 kB / 0.6228 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/1.526, allocations: 262.3 kB / 0.623 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/1.526, allocations: 46.27 kB / 0.6231 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/1.526, allocations: 20 kB / 0.6231 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/1.526, allocations: 354.7 kB / 0.6234 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/1.526, allocations: 4 kB / 0.6234 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/1.527, allocations: 8 kB / 0.6235 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/1.527, allocations: 15.94 kB / 0.6235 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003612/1.527, allocations: 233.7 kB / 0.6237 GB, free: 1.559 MB / 0.4981 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.0185/1.545, allocations: 10.04 MB / 0.6335 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/1.546, allocations: 276.1 kB / 0.6338 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/1.546, allocations: 143.1 kB / 0.6339 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3105/1.857, allocations: 85.98 MB / 0.7179 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003424/1.857, allocations: 217.2 kB / 0.7181 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/1.857, allocations: 0 / 0.7181 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.00108/1.858, allocations: 0.5743 MB / 0.7186 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/1.858, allocations: 84.17 kB / 0.7187 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/1.858, allocations: 259 kB / 0.7189 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/1.858, allocations: 30.73 kB / 0.719 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/1.859, allocations: 165.9 kB / 0.7191 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.28e-05/1.859, allocations: 156.5 kB / 0.7193 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.267e-05/1.859, allocations: 64.55 kB / 0.7193 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.432e-05/1.859, allocations: 346.7 kB / 0.7197 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/1.859, allocations: 107.5 kB / 0.7198 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/1.859, allocations: 162.3 kB / 0.7199 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/1.859, allocations: 290.9 kB / 0.7202 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.859, allocations: 2.156 kB / 0.7202 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006784/1.86, allocations: 429.8 kB / 0.7206 GB, free: 209 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/1.86, allocations: 13.39 kB / 0.7206 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.86, allocations: 2.844 kB / 0.7206 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008967/1.861, allocations: 193.2 kB / 0.7208 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/1.861, allocations: 31.83 kB / 0.7209 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/1.863, allocations: 2.432 MB / 0.7232 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/1.863, allocations: 39.56 kB / 0.7233 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/1.863, allocations: 13.92 kB / 0.7233 GB, free: 206.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.863, allocations: 149.6 kB / 0.7234 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/1.863, allocations: 31.72 kB / 0.7235 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006282/1.864, allocations: 0.5686 MB / 0.724 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004113/1.864, allocations: 364.8 kB / 0.7244 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/1.864, allocations: 3.469 kB / 0.7244 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/1.864, allocations: 0 / 0.7244 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/1.865, allocations: 0.9801 MB / 0.7253 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/1.865, allocations: 0.5 kB / 0.7253 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/1.866, allocations: 59.55 kB / 0.7254 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/1.866, allocations: 100.4 kB / 0.7255 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/1.866, allocations: 14.28 kB / 0.7255 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003182/1.866, allocations: 0.6327 MB / 0.7261 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.866, allocations: 6.5 kB / 0.7261 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/1.867, allocations: 0.6613 MB / 0.7268 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.368e-05/1.867, allocations: 125.2 kB / 0.7269 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/1.867, allocations: 9.219 kB / 0.7269 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/1.867, allocations: 20.03 kB / 0.7269 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.12e-05/1.867, allocations: 28.5 kB / 0.7269 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/1.867, allocations: 11.84 kB / 0.7269 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000158/1.868, allocations: 220.8 kB / 0.7271 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.41e-07/1.868, allocations: 0 / 0.7271 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002326/1.87, allocations: 1.218 MB / 0.7283 GB, free: 205.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004433/1.874, allocations: 1.737 MB / 0.73 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000737/1.875, allocations: 496.1 kB / 0.7305 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.875, allocations: 0 / 0.7305 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003501/1.876, allocations: 194.9 kB / 0.7307 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/1.876, allocations: 136 kB / 0.7308 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/1.877, allocations: 0.8952 MB / 0.7317 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/1.878, allocations: 0.8087 MB / 0.7325 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.74e-05/1.878, allocations: 32.42 kB / 0.7325 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/1.878, allocations: 0 / 0.7325 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.02747/1.905, allocations: 26.85 MB / 0.7587 GB, free: 189.6 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)