Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8468/0.8468, allocations: 150.9 MB / 166.5 MB, free: 14.7 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003107, allocations: 15.33 kB / 237.1 MB, free: 1.879 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04862/0.04894, allocations: 31.35 MB / 268.4 MB, free: 7.191 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.SimpleExamples.TestDynamicCheckValve): time 1.59/1.639, allocations: 295 MB / 0.5503 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03885/1.678, allocations: 34.85 MB / 0.5843 GB, free: 9.824 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/1.679, allocations: 4 kB / 0.5843 GB, free: 9.82 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.0004562/1.679, allocations: 147.2 kB / 0.5844 GB, free: 9.676 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003009/1.679, allocations: 151 kB / 0.5846 GB, free: 9.527 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.02293/1.702, allocations: 9.928 MB / 0.5943 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000685/1.703, allocations: 450.7 kB / 0.5947 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/1.703, allocations: 160.4 kB / 0.5949 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/1.703, allocations: 191.2 kB / 0.595 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/1.704, allocations: 163.2 kB / 0.5952 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/1.704, allocations: 28 kB / 0.5952 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0287/1.732, allocations: 17.9 MB / 0.6127 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001565/1.733, allocations: 75.69 kB / 0.6128 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002221/1.733, allocations: 171.1 kB / 0.6129 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01695/1.75, allocations: 8.499 MB / 0.6212 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.75, allocations: 0 / 0.6212 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.724e-06/1.75, allocations: 3.938 kB / 0.6212 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.263e-06/1.75, allocations: 0 / 0.6212 GB, free: 3.922 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.003816/1.754, allocations: 1.536 MB / 0.6227 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/1.754, allocations: 12.03 kB / 0.6228 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.373e-05/1.754, allocations: 43.38 kB / 0.6228 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/1.754, allocations: 266.3 kB / 0.6231 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.188e-05/1.754, allocations: 46.27 kB / 0.6231 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/1.754, allocations: 24 kB / 0.6231 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005268/1.755, allocations: 350.7 kB / 0.6235 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/1.755, allocations: 4 kB / 0.6235 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/1.755, allocations: 8 kB / 0.6235 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.541e-05/1.755, allocations: 19.92 kB / 0.6235 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003818/1.755, allocations: 225.8 kB / 0.6237 GB, free: 1.289 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.02074/1.776, allocations: 10.04 MB / 0.6335 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006472/1.777, allocations: 270.9 kB / 0.6338 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/1.777, allocations: 151.1 kB / 0.6339 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3466/2.124, allocations: 85.98 MB / 0.7179 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003882/2.124, allocations: 222.6 kB / 0.7181 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.765e-06/2.124, allocations: 0 / 0.7181 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001191/2.125, allocations: 0.5684 MB / 0.7186 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/2.125, allocations: 88.64 kB / 0.7187 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/2.125, allocations: 252.7 kB / 0.719 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/2.126, allocations: 29.92 kB / 0.719 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.469e-05/2.126, allocations: 173.7 kB / 0.7192 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/2.126, allocations: 152 kB / 0.7193 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-05/2.126, allocations: 65.25 kB / 0.7194 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.998e-05/2.126, allocations: 339.5 kB / 0.7197 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/2.126, allocations: 112 kB / 0.7198 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/2.126, allocations: 162.2 kB / 0.72 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/2.127, allocations: 290.5 kB / 0.7202 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/2.127, allocations: 1.219 kB / 0.7202 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007951/2.127, allocations: 437.9 kB / 0.7206 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/2.127, allocations: 5.125 kB / 0.7207 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/2.128, allocations: 6.172 kB / 0.7207 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009606/2.128, allocations: 192.1 kB / 0.7208 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/2.129, allocations: 30.2 kB / 0.7209 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/2.131, allocations: 2.422 MB / 0.7232 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/2.131, allocations: 50.31 kB / 0.7233 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/2.131, allocations: 11.12 kB / 0.7233 GB, free: 206.6 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.0001404/2.131, allocations: 154.7 kB / 0.7234 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.247e-05/2.131, allocations: 32.84 kB / 0.7235 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006766/2.132, allocations: 0.5667 MB / 0.724 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004461/2.132, allocations: 364.4 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/2.132, allocations: 3.281 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/2.132, allocations: 3.219 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/2.133, allocations: 0.9745 MB / 0.7253 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/2.133, allocations: 4.938 kB / 0.7253 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/2.134, allocations: 59.19 kB / 0.7254 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003262/2.134, allocations: 103.4 kB / 0.7255 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/2.134, allocations: 6.062 kB / 0.7255 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003584/2.134, allocations: 0.6423 MB / 0.7261 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/2.134, allocations: 3.938 kB / 0.7261 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008492/2.135, allocations: 0.6484 MB / 0.7268 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/2.135, allocations: 139.8 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/2.135, allocations: 6.438 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/2.136, allocations: 24.19 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/2.136, allocations: 31.19 kB / 0.727 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/2.136, allocations: 13.16 kB / 0.727 GB, free: 205 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001796/2.136, allocations: 218.8 kB / 0.7272 GB, free: 205 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.136, allocations: 0 / 0.7272 GB, free: 205 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002792/2.139, allocations: 1.206 MB / 0.7284 GB, free: 204.9 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.005284/2.144, allocations: 1.739 MB / 0.73 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009725/2.145, allocations: 0.4931 MB / 0.7305 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/2.145, allocations: 0 / 0.7305 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004055/2.146, allocations: 189.4 kB / 0.7307 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007988/2.146, allocations: 133.7 kB / 0.7308 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/2.148, allocations: 0.8541 MB / 0.7317 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/2.148, allocations: 0.8161 MB / 0.7325 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001558/2.148, allocations: 32.16 kB / 0.7325 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/2.148, allocations: 29.42 kB / 0.7325 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of SimCode: time 3.5e-07/2.148, allocations: 0 / 0.7325 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.04921/2.197, allocations: 44.15 MB / 0.7756 GB, free: 172.1 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)