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.7491/0.7491, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003109, allocations: 12.52 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04487/0.04519, allocations: 31.35 MB / 269.1 MB, free: 7.086 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.417/1.462, allocations: 294.7 MB / 0.5505 GB, free: 13.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03362/1.495, allocations: 34.49 MB / 0.5842 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/1.496, allocations: 4 kB / 0.5842 GB, free: 10.37 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.0003142/1.496, allocations: 113.3 kB / 0.5843 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001769/1.496, allocations: 99.11 kB / 0.5844 GB, free: 10.16 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.02047/1.517, allocations: 9.59 MB / 0.5938 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/1.517, allocations: 378.3 kB / 0.5941 GB, free: 192 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/1.517, allocations: 124.6 kB / 0.5943 GB, free: 72 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/1.517, allocations: 155.3 kB / 0.5944 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/1.518, allocations: 119.4 kB / 0.5945 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/1.518, allocations: 20 kB / 0.5945 GB, free: 15.78 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02521/1.543, allocations: 17.89 MB / 0.612 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.724e-05/1.543, allocations: 55.77 kB / 0.6121 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001625/1.543, allocations: 147.2 kB / 0.6122 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01373/1.557, allocations: 8.425 MB / 0.6204 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.557, allocations: 4 kB / 0.6204 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/1.557, allocations: 0 / 0.6204 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.474e-06/1.557, allocations: 4 kB / 0.6204 GB, free: 5.215 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.003119/1.56, allocations: 1.474 MB / 0.6219 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/1.56, allocations: 12.03 kB / 0.6219 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/1.56, allocations: 35.47 kB / 0.6219 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/1.56, allocations: 236.7 kB / 0.6221 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/1.56, allocations: 42.14 kB / 0.6222 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/1.56, allocations: 20 kB / 0.6222 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/1.561, allocations: 322.7 kB / 0.6225 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/1.561, allocations: 3.984 kB / 0.6225 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/1.561, allocations: 8 kB / 0.6225 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/1.561, allocations: 15.92 kB / 0.6225 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/1.561, allocations: 200.1 kB / 0.6227 GB, free: 2.746 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.01743/1.579, allocations: 9.952 MB / 0.6325 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/1.579, allocations: 162.8 kB / 0.6326 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/1.579, allocations: 117.1 kB / 0.6327 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3032/1.882, allocations: 85.98 MB / 0.7167 GB, free: 212 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/1.883, allocations: 186.8 kB / 0.7169 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 1.964e-06/1.883, allocations: 1.219 kB / 0.7169 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.0009254/1.884, allocations: 0.5125 MB / 0.7174 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/1.884, allocations: 79.11 kB / 0.7174 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/1.884, allocations: 206.7 kB / 0.7176 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/1.884, allocations: 30.7 kB / 0.7177 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/1.884, allocations: 147.8 kB / 0.7178 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/1.884, allocations: 139.4 kB / 0.7179 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/1.884, allocations: 56.12 kB / 0.718 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.824e-05/1.884, allocations: 335.9 kB / 0.7183 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/1.884, allocations: 95.48 kB / 0.7184 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/1.884, allocations: 166.8 kB / 0.7186 GB, free: 211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/1.886, allocations: 0.5048 MB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.886, allocations: 5.312 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005468/1.886, allocations: 358.6 kB / 0.7194 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.886, allocations: 9.391 kB / 0.7194 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/1.886, allocations: 1.094 kB / 0.7194 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005526/1.887, allocations: 133.1 kB / 0.7195 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.759e-05/1.887, allocations: 19.64 kB / 0.7196 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003006/1.887, allocations: 0.6076 MB / 0.7202 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/1.887, allocations: 45.69 kB / 0.7202 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/1.887, allocations: 12.69 kB / 0.7202 GB, free: 210.3 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.0001242/1.887, allocations: 155.3 kB / 0.7204 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/1.887, allocations: 23.5 kB / 0.7204 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/1.888, allocations: 0.5027 MB / 0.7209 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003626/1.888, allocations: 325.6 kB / 0.7212 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.888, allocations: 0.5625 kB / 0.7212 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/1.888, allocations: 0 / 0.7212 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008538/1.889, allocations: 0.8617 MB / 0.722 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.889, allocations: 4 kB / 0.722 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.464e-05/1.889, allocations: 30.38 kB / 0.7221 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005054/1.89, allocations: 124.6 kB / 0.7222 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/1.89, allocations: 8.5 kB / 0.7222 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002504/1.89, allocations: 0.6254 MB / 0.7228 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.89, allocations: 0 / 0.7228 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/1.891, allocations: 453.4 kB / 0.7232 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/1.891, allocations: 115.4 kB / 0.7233 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/1.891, allocations: 15.53 kB / 0.7234 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/1.891, allocations: 16.44 kB / 0.7234 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/1.891, allocations: 26.08 kB / 0.7234 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/1.891, allocations: 8.688 kB / 0.7234 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001148/1.891, allocations: 186.7 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/1.891, allocations: 0 / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002301/1.893, allocations: 1.193 MB / 0.7247 GB, free: 208.7 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.003593/1.897, allocations: 1.739 MB / 0.7264 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005827/1.898, allocations: 324.7 kB / 0.7268 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/1.898, allocations: 2.875 kB / 0.7268 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000279/1.898, allocations: 156.8 kB / 0.7269 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006077/1.898, allocations: 122.2 kB / 0.727 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007141/1.899, allocations: 0.6049 MB / 0.7276 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/1.899, allocations: 0.7821 MB / 0.7284 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/1.899, allocations: 28.81 kB / 0.7284 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of SimCode: time 2.31e-07/1.899, allocations: 0 / 0.7284 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.0267/1.926, allocations: 25.18 MB / 0.753 GB, free: 195.4 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)