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.8238/0.8238, allocations: 150.9 MB / 166.5 MB, free: 14.18 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.000342, allocations: 13.88 kB / 237 MB, free: 1.895 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05578/0.05614, allocations: 31.34 MB / 268.4 MB, free: 7.109 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.659/1.716, allocations: 294.7 MB / 0.5499 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04059/1.756, allocations: 34.5 MB / 0.5835 GB, free: 10.41 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002415/1.757, allocations: 4 kB / 0.5835 GB, free: 10.41 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.0003727/1.757, allocations: 112.9 kB / 0.5837 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/1.757, allocations: 99.16 kB / 0.5837 GB, free: 10.2 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.02426/1.781, allocations: 9.582 MB / 0.5931 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006059/1.782, allocations: 378.3 kB / 0.5935 GB, free: 240 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/1.782, allocations: 120.6 kB / 0.5936 GB, free: 124 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/1.783, allocations: 155.5 kB / 0.5937 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/1.783, allocations: 127.4 kB / 0.5938 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/1.783, allocations: 20 kB / 0.5939 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02909/1.812, allocations: 17.9 MB / 0.6113 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.511e-05/1.812, allocations: 47.78 kB / 0.6114 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/1.812, allocations: 151.2 kB / 0.6115 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01978/1.832, allocations: 8.429 MB / 0.6198 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/1.832, allocations: 0 / 0.6198 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.355e-06/1.832, allocations: 0 / 0.6198 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.766e-06/1.832, allocations: 0 / 0.6198 GB, free: 5.262 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.004256/1.836, allocations: 1.472 MB / 0.6212 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/1.836, allocations: 11.97 kB / 0.6212 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/1.836, allocations: 39.47 kB / 0.6213 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/1.837, allocations: 244.7 kB / 0.6215 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.642e-05/1.837, allocations: 38.14 kB / 0.6215 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/1.837, allocations: 24 kB / 0.6215 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004835/1.837, allocations: 318.7 kB / 0.6218 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/1.837, allocations: 0 / 0.6218 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/1.837, allocations: 7.984 kB / 0.6219 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/1.837, allocations: 15.94 kB / 0.6219 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/1.838, allocations: 200.1 kB / 0.6221 GB, free: 2.793 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.01978/1.857, allocations: 9.952 MB / 0.6318 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/1.858, allocations: 162.8 kB / 0.6319 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/1.858, allocations: 117.2 kB / 0.632 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3461/2.204, allocations: 85.98 MB / 0.716 GB, free: 212 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/2.204, allocations: 189.8 kB / 0.7162 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/2.204, allocations: 0 / 0.7162 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.001013/2.205, allocations: 0.506 MB / 0.7167 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/2.206, allocations: 86.14 kB / 0.7168 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/2.206, allocations: 202.1 kB / 0.717 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/2.206, allocations: 37.75 kB / 0.717 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.53e-05/2.206, allocations: 147.2 kB / 0.7171 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.087e-05/2.206, allocations: 134.8 kB / 0.7173 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/2.206, allocations: 64.22 kB / 0.7173 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.667e-05/2.206, allocations: 334.4 kB / 0.7177 GB, free: 211 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/2.206, allocations: 94.67 kB / 0.7177 GB, free: 211 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/2.206, allocations: 155.7 kB / 0.7179 GB, free: 211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/2.208, allocations: 0.5171 MB / 0.7184 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/2.208, allocations: 1.531 kB / 0.7184 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000585/2.208, allocations: 367.7 kB / 0.7187 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/2.208, allocations: 6.5 kB / 0.7188 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/2.208, allocations: 2.531 kB / 0.7188 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005749/2.209, allocations: 126.6 kB / 0.7189 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.815e-05/2.209, allocations: 23.97 kB / 0.7189 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003417/2.209, allocations: 0.6067 MB / 0.7195 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/2.209, allocations: 37.47 kB / 0.7195 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/2.209, allocations: 13.81 kB / 0.7195 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.0001408/2.21, allocations: 155.7 kB / 0.7197 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/2.21, allocations: 24.78 kB / 0.7197 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005967/2.21, allocations: 0.5037 MB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003964/2.211, allocations: 327.4 kB / 0.7205 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/2.211, allocations: 0 / 0.7205 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/2.211, allocations: 0 / 0.7205 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009213/2.212, allocations: 0.8591 MB / 0.7214 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/2.212, allocations: 0.5625 kB / 0.7214 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.247e-05/2.212, allocations: 32.67 kB / 0.7214 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005273/2.212, allocations: 129.7 kB / 0.7215 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/2.212, allocations: 2.734 kB / 0.7215 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002802/2.213, allocations: 0.632 MB / 0.7221 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/2.213, allocations: 2.594 kB / 0.7221 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005137/2.213, allocations: 452.2 kB / 0.7226 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/2.213, allocations: 120.1 kB / 0.7227 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/2.213, allocations: 10.53 kB / 0.7227 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/2.213, allocations: 15.75 kB / 0.7227 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/2.213, allocations: 23.7 kB / 0.7227 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/2.213, allocations: 11.75 kB / 0.7227 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001259/2.214, allocations: 185.6 kB / 0.7229 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.214, allocations: 0.5625 kB / 0.7229 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002516/2.216, allocations: 1.192 MB / 0.7241 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.003974/2.22, allocations: 1.739 MB / 0.7258 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006322/2.221, allocations: 321.4 kB / 0.7261 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/2.221, allocations: 0 / 0.7261 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002914/2.221, allocations: 158.9 kB / 0.7262 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.0006727/2.222, allocations: 120.5 kB / 0.7264 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007357/2.222, allocations: 0.5823 MB / 0.7269 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/2.223, allocations: 0.7843 MB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.995e-05/2.223, allocations: 29.95 kB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.787e-05/2.223, allocations: 21.5 kB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of SimCode: time 3.51e-07/2.223, allocations: 0 / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.04255/2.265, allocations: 42.68 MB / 0.7694 GB, free: 178.2 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)