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.8292/0.8292, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 13.02 kB / 237 MB, free: 1.871 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05369/0.05403, allocations: 31.34 MB / 268.4 MB, free: 7.125 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.647/1.701, allocations: 294.8 MB / 0.5499 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04121/1.742, allocations: 34.49 MB / 0.5836 GB, free: 10.56 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002175/1.742, allocations: 4 kB / 0.5836 GB, free: 10.56 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.0004168/1.743, allocations: 127.3 kB / 0.5837 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/1.743, allocations: 127.2 kB / 0.5839 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.02566/1.769, allocations: 9.756 MB / 0.5934 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/1.769, allocations: 378.3 kB / 0.5937 GB, free: 172 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/1.77, allocations: 124.6 kB / 0.5939 GB, free: 52 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/1.77, allocations: 159.3 kB / 0.594 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/1.77, allocations: 119.4 kB / 0.5941 GB, free: 15.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/1.77, allocations: 20 kB / 0.5941 GB, free: 15.76 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03239/1.803, allocations: 17.89 MB / 0.6116 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.141e-05/1.803, allocations: 55.77 kB / 0.6117 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002144/1.803, allocations: 143.2 kB / 0.6118 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01961/1.823, allocations: 8.433 MB / 0.62 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/1.823, allocations: 0 / 0.62 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.854e-06/1.823, allocations: 0 / 0.62 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.479e-05/1.823, allocations: 4 kB / 0.62 GB, free: 5.191 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.004533/1.827, allocations: 1.474 MB / 0.6215 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/1.827, allocations: 12.03 kB / 0.6215 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/1.827, allocations: 39.47 kB / 0.6215 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/1.828, allocations: 236.6 kB / 0.6218 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.556e-05/1.828, allocations: 46.14 kB / 0.6218 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/1.828, allocations: 19.94 kB / 0.6218 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/1.828, allocations: 314.8 kB / 0.6221 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/1.828, allocations: 3.938 kB / 0.6221 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/1.828, allocations: 15.98 kB / 0.6221 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/1.828, allocations: 15.94 kB / 0.6222 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004075/1.829, allocations: 200.2 kB / 0.6223 GB, free: 2.715 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.02126/1.85, allocations: 9.945 MB / 0.6321 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/1.85, allocations: 169.3 kB / 0.6322 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/1.851, allocations: 113.2 kB / 0.6323 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3643/2.215, allocations: 85.98 MB / 0.7163 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003713/2.215, allocations: 188.7 kB / 0.7165 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=43): time 2.244e-06/2.215, allocations: 0 / 0.7165 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=43): time 0.0011/2.217, allocations: 0.5135 MB / 0.717 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/2.217, allocations: 79.27 kB / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/2.217, allocations: 208.8 kB / 0.7173 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/2.217, allocations: 31.02 kB / 0.7173 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.493e-05/2.217, allocations: 145.8 kB / 0.7174 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.105e-05/2.217, allocations: 137.5 kB / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/2.217, allocations: 60.53 kB / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.443e-05/2.217, allocations: 337.2 kB / 0.7179 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/2.217, allocations: 97.53 kB / 0.718 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/2.218, allocations: 162.5 kB / 0.7182 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/2.219, allocations: 0.5121 MB / 0.7187 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/2.219, allocations: 1.375 kB / 0.7187 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006068/2.219, allocations: 364.7 kB / 0.719 GB, free: 211 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/2.219, allocations: 6.594 kB / 0.719 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/2.219, allocations: 3 kB / 0.719 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/2.22, allocations: 131.1 kB / 0.7192 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/2.22, allocations: 20.55 kB / 0.7192 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003476/2.221, allocations: 0.6071 MB / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/2.221, allocations: 37.52 kB / 0.7198 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/2.221, allocations: 10.91 kB / 0.7198 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.0001636/2.221, allocations: 160.5 kB / 0.72 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/2.221, allocations: 22.5 kB / 0.72 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006427/2.222, allocations: 0.4983 MB / 0.7205 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004217/2.222, allocations: 327.5 kB / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/2.222, allocations: 3.422 kB / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/2.222, allocations: 3.25 kB / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/2.223, allocations: 0.8553 MB / 0.7216 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/2.223, allocations: 4 kB / 0.7216 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.782e-05/2.223, allocations: 34.86 kB / 0.7217 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005512/2.224, allocations: 123.3 kB / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/2.224, allocations: 5.938 kB / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003059/2.224, allocations: 0.6226 MB / 0.7224 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/2.224, allocations: 9.312 kB / 0.7224 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005409/2.225, allocations: 446.9 kB / 0.7228 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/2.225, allocations: 123.1 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/2.225, allocations: 14.75 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/2.225, allocations: 12.94 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/2.225, allocations: 17.91 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/2.225, allocations: 13 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001368/2.225, allocations: 186.8 kB / 0.7232 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.02e-07/2.225, allocations: 0 / 0.7232 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00264/2.228, allocations: 1.195 MB / 0.7244 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.004933/2.233, allocations: 1.737 MB / 0.7261 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006729/2.234, allocations: 322.8 kB / 0.7264 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/2.234, allocations: 0 / 0.7264 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003256/2.234, allocations: 156 kB / 0.7265 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007185/2.235, allocations: 124.2 kB / 0.7266 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008088/2.235, allocations: 0.578 MB / 0.7272 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/2.236, allocations: 0.786 MB / 0.728 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000112/2.236, allocations: 26.05 kB / 0.728 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/2.236, allocations: 23.56 kB / 0.728 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/2.236, allocations: 2.719 kB / 0.728 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.04496/2.281, allocations: 42.69 MB / 0.7697 GB, free: 178.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)