Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8749/0.8749, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003101, allocations: 13.28 kB / 237 MB, free: 1.824 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05394/0.05427, allocations: 31.35 MB / 268.4 MB, free: 7.129 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.TestCheckValve): time 1.629/1.683, allocations: 294.8 MB / 0.55 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04211/1.726, allocations: 34.49 MB / 0.5836 GB, free: 10.52 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/1.726, allocations: 0 / 0.5836 GB, free: 10.52 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/CheckValve.mo:38:3-39:49: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/CheckValve.mo:40:3-41:47: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.0004241/1.726, allocations: 111.3 kB / 0.5837 GB, free: 10.41 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/1.727, allocations: 103.1 kB / 0.5838 GB, free: 10.31 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.02482/1.751, allocations: 9.6 MB / 0.5932 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005807/1.752, allocations: 362.3 kB / 0.5936 GB, free: 348 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/1.752, allocations: 128.6 kB / 0.5937 GB, free: 224 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/1.752, allocations: 155.3 kB / 0.5938 GB, free: 68 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/1.753, allocations: 123.4 kB / 0.594 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/1.753, allocations: 20 kB / 0.594 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03183/1.785, allocations: 17.89 MB / 0.6114 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.922e-05/1.785, allocations: 47.78 kB / 0.6115 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002044/1.785, allocations: 151.2 kB / 0.6116 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02004/1.805, allocations: 8.454 MB / 0.6199 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.805, allocations: 0 / 0.6199 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/1.805, allocations: 0 / 0.6199 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.323e-05/1.805, allocations: 4 kB / 0.6199 GB, free: 5.34 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003951/1.809, allocations: 1.526 MB / 0.6214 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/1.809, allocations: 8.031 kB / 0.6214 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.566e-05/1.809, allocations: 43.69 kB / 0.6214 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/1.809, allocations: 240.8 kB / 0.6217 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/1.809, allocations: 38.14 kB / 0.6217 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/1.809, allocations: 28 kB / 0.6217 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/1.81, allocations: 314.7 kB / 0.622 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/1.81, allocations: 3.984 kB / 0.622 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/1.81, allocations: 4 kB / 0.622 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/1.81, allocations: 15.94 kB / 0.622 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/1.81, allocations: 204.1 kB / 0.6222 GB, free: 2.809 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.02004/1.83, allocations: 9.956 MB / 0.632 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/1.831, allocations: 162.8 kB / 0.6321 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/1.831, allocations: 113.2 kB / 0.6322 GB, free: 7.531 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3709/2.202, allocations: 85.99 MB / 0.7162 GB, free: 212 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/2.202, allocations: 198.1 kB / 0.7164 GB, free: 212 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 3.186e-06/2.202, allocations: 0 / 0.7164 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.001049/2.203, allocations: 0.5077 MB / 0.7169 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/2.203, allocations: 83.78 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/2.204, allocations: 207.4 kB / 0.7172 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/2.204, allocations: 36.23 kB / 0.7172 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.173e-05/2.204, allocations: 144.7 kB / 0.7173 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/2.204, allocations: 141.6 kB / 0.7175 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/2.204, allocations: 61.06 kB / 0.7175 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.719e-05/2.204, allocations: 333.8 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/2.204, allocations: 97.19 kB / 0.7179 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/2.204, allocations: 163.2 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/2.206, allocations: 0.513 MB / 0.7186 GB, free: 211 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/2.206, allocations: 0 / 0.7186 GB, free: 211 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006227/2.206, allocations: 360.3 kB / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/2.206, allocations: 11.36 kB / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/2.206, allocations: 3.719 kB / 0.719 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005909/2.207, allocations: 127.9 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/2.207, allocations: 19.86 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003505/2.207, allocations: 0.6183 MB / 0.7197 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/2.208, allocations: 35 kB / 0.7197 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/2.208, allocations: 11.91 kB / 0.7197 GB, free: 210.4 MB / 0.5919 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001574/2.208, allocations: 149.8 kB / 0.7199 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.445e-05/2.208, allocations: 29.09 kB / 0.7199 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/2.208, allocations: 0.5085 MB / 0.7204 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004049/2.209, allocations: 322.5 kB / 0.7207 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/2.209, allocations: 1.438 kB / 0.7207 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/2.209, allocations: 0 / 0.7207 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/2.21, allocations: 0.8667 MB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/2.21, allocations: 3.219 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.038e-05/2.21, allocations: 25.97 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005201/2.21, allocations: 132.3 kB / 0.7217 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/2.21, allocations: 6.562 kB / 0.7217 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002918/2.211, allocations: 0.6209 MB / 0.7223 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/2.211, allocations: 0 / 0.7223 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/2.211, allocations: 459.9 kB / 0.7228 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.858e-05/2.211, allocations: 117.3 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.838e-05/2.211, allocations: 10.59 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/2.212, allocations: 13.22 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/2.212, allocations: 23.78 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/2.212, allocations: 12.22 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001348/2.212, allocations: 185.7 kB / 0.7231 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/2.212, allocations: 3.656 kB / 0.7231 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002653/2.215, allocations: 1.212 MB / 0.7243 GB, free: 208.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004284/2.219, allocations: 1.749 MB / 0.726 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00075/2.22, allocations: 321.3 kB / 0.7263 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/2.22, allocations: 2.75 kB / 0.7263 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003153/2.22, allocations: 158.5 kB / 0.7265 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/2.221, allocations: 121.2 kB / 0.7266 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008287/2.221, allocations: 0.5825 MB / 0.7272 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001812/2.222, allocations: 0.7779 MB / 0.7279 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.248e-05/2.222, allocations: 22.27 kB / 0.7279 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.941e-05/2.222, allocations: 26.28 kB / 0.728 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of SimCode: time 3.81e-07/2.222, allocations: 0 / 0.728 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.04317/2.265, allocations: 42.69 MB / 0.7696 GB, free: 178.6 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)