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.838/0.838, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003109, allocations: 14.66 kB / 237 MB, free: 1.855 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05512/0.05544, allocations: 31.35 MB / 268.4 MB, free: 7.113 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.734/1.789, allocations: 294.9 MB / 0.55 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03957/1.829, allocations: 34.85 MB / 0.5841 GB, free: 9.828 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002483/1.829, allocations: 4 kB / 0.5841 GB, free: 9.824 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.0004254/1.83, allocations: 127.2 kB / 0.5842 GB, free: 9.699 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/1.83, allocations: 138.9 kB / 0.5843 GB, free: 9.562 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.02354/1.853, allocations: 9.755 MB / 0.5938 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006224/1.854, allocations: 450.6 kB / 0.5943 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/1.854, allocations: 160.5 kB / 0.5944 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/1.855, allocations: 187.2 kB / 0.5946 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/1.855, allocations: 159.2 kB / 0.5948 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/1.855, allocations: 28 kB / 0.5948 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02811/1.883, allocations: 17.9 MB / 0.6123 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001256/1.883, allocations: 71.69 kB / 0.6123 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000214/1.883, allocations: 171.1 kB / 0.6125 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01731/1.901, allocations: 8.499 MB / 0.6208 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.901, allocations: 0 / 0.6208 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.813e-06/1.901, allocations: 4 kB / 0.6208 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.604e-06/1.901, allocations: 0 / 0.6208 GB, free: 4.148 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.004025/1.905, allocations: 1.54 MB / 0.6223 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.905, allocations: 15.89 kB / 0.6223 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.622e-05/1.905, allocations: 43.38 kB / 0.6224 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/1.905, allocations: 262.3 kB / 0.6226 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.366e-05/1.905, allocations: 50.27 kB / 0.6227 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/1.905, allocations: 24 kB / 0.6227 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/1.906, allocations: 350.7 kB / 0.623 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/1.906, allocations: 0 / 0.623 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/1.906, allocations: 15.98 kB / 0.623 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/1.906, allocations: 15.94 kB / 0.623 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000375/1.906, allocations: 229.7 kB / 0.6233 GB, free: 1.5 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.02027/1.927, allocations: 10.04 MB / 0.6331 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/1.927, allocations: 270.9 kB / 0.6333 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/1.928, allocations: 151 kB / 0.6335 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3591/2.287, allocations: 85.98 MB / 0.7174 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004762/2.287, allocations: 214 kB / 0.7176 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.565e-06/2.287, allocations: 0 / 0.7176 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001285/2.288, allocations: 0.5762 MB / 0.7182 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/2.288, allocations: 81.61 kB / 0.7183 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/2.289, allocations: 256.1 kB / 0.7185 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/2.289, allocations: 33.55 kB / 0.7186 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/2.289, allocations: 166.4 kB / 0.7187 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.909e-05/2.289, allocations: 154.5 kB / 0.7189 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/2.289, allocations: 59.23 kB / 0.7189 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.291e-05/2.289, allocations: 346.3 kB / 0.7192 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/2.289, allocations: 105.9 kB / 0.7194 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/2.29, allocations: 164.9 kB / 0.7195 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/2.29, allocations: 289.3 kB / 0.7198 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/2.29, allocations: 0 / 0.7198 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007365/2.291, allocations: 441.3 kB / 0.7202 GB, free: 209 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/2.291, allocations: 5.438 kB / 0.7202 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/2.291, allocations: 0 / 0.7202 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009329/2.292, allocations: 196.5 kB / 0.7204 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/2.292, allocations: 24.97 kB / 0.7204 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/2.294, allocations: 2.437 MB / 0.7228 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/2.294, allocations: 35.2 kB / 0.7228 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/2.294, allocations: 10.28 kB / 0.7228 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.0001314/2.294, allocations: 160.2 kB / 0.723 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/2.294, allocations: 34.5 kB / 0.723 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006726/2.295, allocations: 0.5625 MB / 0.7236 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004459/2.295, allocations: 363.4 kB / 0.7239 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/2.295, allocations: 7.094 kB / 0.7239 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/2.295, allocations: 0 / 0.7239 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/2.296, allocations: 0.9787 MB / 0.7249 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/2.296, allocations: 0 / 0.7249 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/2.297, allocations: 58.92 kB / 0.7249 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003222/2.297, allocations: 102.2 kB / 0.725 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/2.297, allocations: 10.19 kB / 0.7251 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003635/2.297, allocations: 0.6416 MB / 0.7257 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/2.297, allocations: 8.547 kB / 0.7257 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/2.298, allocations: 0.6474 MB / 0.7263 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.915e-05/2.298, allocations: 127.3 kB / 0.7264 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/2.298, allocations: 15.94 kB / 0.7265 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/2.299, allocations: 22.38 kB / 0.7265 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/2.299, allocations: 30.36 kB / 0.7265 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/2.299, allocations: 12.48 kB / 0.7265 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000174/2.299, allocations: 217.9 kB / 0.7267 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.61e-07/2.299, allocations: 0 / 0.7267 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00289/2.302, allocations: 1.217 MB / 0.7279 GB, free: 205.3 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.004008/2.306, allocations: 1.74 MB / 0.7296 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009043/2.307, allocations: 498.4 kB / 0.7301 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/2.307, allocations: 0 / 0.7301 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000383/2.307, allocations: 194.1 kB / 0.7303 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.0007167/2.308, allocations: 130.7 kB / 0.7304 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/2.31, allocations: 0.8565 MB / 0.7312 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/2.31, allocations: 0.8114 MB / 0.732 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001495/2.31, allocations: 33.52 kB / 0.7321 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/2.31, allocations: 29.55 kB / 0.7321 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.265e-06/2.31, allocations: 4 kB / 0.7321 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.04611/2.356, allocations: 44.16 MB / 0.7752 GB, free: 172.4 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)