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.8033/0.8033, allocations: 150.9 MB / 166.4 MB, free: 14.21 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 15.97 kB / 204.5 MB, free: 9.613 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1376, allocations: 31.33 MB / 235.9 MB, free: 5.449 MB / 190.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.57/1.708, allocations: 294.7 MB / 0.5181 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03731/1.745, allocations: 34.48 MB / 0.5518 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/1.745, allocations: 0 / 0.5518 GB, free: 10.91 MB / 446.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.0003376/1.746, allocations: 115.3 kB / 0.5519 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/1.746, allocations: 99.17 kB / 0.552 GB, free: 10.7 MB / 446.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.02246/1.768, allocations: 9.589 MB / 0.5614 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004807/1.769, allocations: 366.4 kB / 0.5617 GB, free: 0.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/1.769, allocations: 127.6 kB / 0.5618 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/1.769, allocations: 151.3 kB / 0.562 GB, free: 488 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/1.769, allocations: 111.4 kB / 0.5621 GB, free: 376 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/1.769, allocations: 20 kB / 0.5621 GB, free: 356 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03098/1.8, allocations: 17.68 MB / 0.5794 GB, free: 14.65 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/1.801, allocations: 59.77 kB / 0.5794 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/1.801, allocations: 147.2 kB / 0.5796 GB, free: 14.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02147/1.822, allocations: 8.441 MB / 0.5878 GB, free: 5.984 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/1.823, allocations: 4 kB / 0.5878 GB, free: 5.98 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.763e-06/1.823, allocations: 0 / 0.5878 GB, free: 5.98 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/1.823, allocations: 0 / 0.5878 GB, free: 5.98 MB / 478.1 MB 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.00428/1.827, allocations: 1.475 MB / 0.5893 GB, free: 4.457 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/1.827, allocations: 12.03 kB / 0.5893 GB, free: 4.445 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.57e-05/1.827, allocations: 35.56 kB / 0.5893 GB, free: 4.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/1.827, allocations: 242 kB / 0.5895 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.789e-05/1.827, allocations: 43.59 kB / 0.5896 GB, free: 4.09 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/1.827, allocations: 24 kB / 0.5896 GB, free: 4.066 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/1.828, allocations: 322.6 kB / 0.5899 GB, free: 3.719 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/1.828, allocations: 0 / 0.5899 GB, free: 3.719 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/1.828, allocations: 12 kB / 0.5899 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/1.828, allocations: 15.92 kB / 0.5899 GB, free: 3.691 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/1.828, allocations: 192.3 kB / 0.5901 GB, free: 3.504 MB / 478.1 MB 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.01956/1.848, allocations: 9.896 MB / 0.5998 GB, free: 8.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/1.848, allocations: 158.8 kB / 0.5999 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/1.848, allocations: 113.2 kB / 0.6 GB, free: 8.293 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1664/2.015, allocations: 85.48 MB / 0.6835 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/2.015, allocations: 193 kB / 0.6837 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.254e-06/2.015, allocations: 0 / 0.6837 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001067/2.016, allocations: 0.503 MB / 0.6842 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/2.016, allocations: 85.09 kB / 0.6843 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/2.016, allocations: 206.8 kB / 0.6845 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/2.016, allocations: 29.7 kB / 0.6845 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.35e-05/2.017, allocations: 152.6 kB / 0.6846 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.542e-05/2.017, allocations: 134 kB / 0.6848 GB, free: 7.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.748e-05/2.017, allocations: 57.73 kB / 0.6848 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001139/2.017, allocations: 338.8 kB / 0.6852 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/2.017, allocations: 92.41 kB / 0.6852 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/2.017, allocations: 157.4 kB / 0.6854 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/2.019, allocations: 0.5146 MB / 0.6859 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/2.019, allocations: 4 kB / 0.6859 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006378/2.019, allocations: 365.9 kB / 0.6862 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/2.019, allocations: 4 kB / 0.6862 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/2.019, allocations: 4.281 kB / 0.6863 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/2.02, allocations: 124.9 kB / 0.6864 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.955e-05/2.02, allocations: 19.94 kB / 0.6864 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004648/2.02, allocations: 0.6204 MB / 0.687 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/2.021, allocations: 43.67 kB / 0.687 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/2.021, allocations: 8 kB / 0.687 GB, free: 5.395 MB / 0.5762 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.0002433/2.021, allocations: 146.9 kB / 0.6872 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/2.021, allocations: 31.66 kB / 0.6872 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007486/2.022, allocations: 0.4973 MB / 0.6877 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000488/2.022, allocations: 318.3 kB / 0.688 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/2.022, allocations: 0 / 0.688 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/2.022, allocations: 4 kB / 0.688 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/2.023, allocations: 0.8827 MB / 0.6889 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.023, allocations: 0 / 0.6889 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/2.024, allocations: 35.92 kB / 0.6889 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005732/2.024, allocations: 128.7 kB / 0.689 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/2.024, allocations: 7.984 kB / 0.689 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003625/2.025, allocations: 0.6243 MB / 0.6896 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/2.025, allocations: 3.984 kB / 0.6896 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/2.025, allocations: 444.9 kB / 0.6901 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.624e-05/2.025, allocations: 120.6 kB / 0.6902 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/2.025, allocations: 12 kB / 0.6902 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/2.025, allocations: 15.98 kB / 0.6902 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/2.026, allocations: 19.97 kB / 0.6902 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/2.026, allocations: 7.938 kB / 0.6902 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001567/2.026, allocations: 188.5 kB / 0.6904 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.026, allocations: 0 / 0.6904 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002842/2.029, allocations: 1.198 MB / 0.6916 GB, free: 0.5547 MB / 0.5762 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.1663/2.195, allocations: 1.722 MB / 0.6933 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008773/2.196, allocations: 323 kB / 0.6936 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/2.196, allocations: 1.188 kB / 0.6936 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003252/2.196, allocations: 154 kB / 0.6937 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007704/2.197, allocations: 124.8 kB / 0.6938 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008549/2.198, allocations: 0.582 MB / 0.6944 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/2.198, allocations: 0.781 MB / 0.6952 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001116/2.198, allocations: 28.19 kB / 0.6952 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/2.198, allocations: 23.78 kB / 0.6952 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/2.198, allocations: 0 / 0.6952 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.04507/2.243, allocations: 42.71 MB / 0.7369 GB, free: 204.9 MB / 0.5762 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)