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.7891/0.789, allocations: 150.9 MB / 166.1 MB, free: 14.88 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 15.97 kB / 204.2 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1447, allocations: 31.32 MB / 235.5 MB, free: 5.379 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.594/1.739, allocations: 293.6 MB / 0.5167 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03729/1.776, allocations: 34.69 MB / 0.5506 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/1.777, allocations: 4 kB / 0.5506 GB, free: 11.12 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.0004106/1.777, allocations: 96.11 kB / 0.5507 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/1.777, allocations: 87.38 kB / 0.5507 GB, free: 10.94 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.0212/1.799, allocations: 8.406 MB / 0.559 GB, free: 2.527 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005268/1.799, allocations: 374.3 kB / 0.5593 GB, free: 2.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/1.799, allocations: 124.5 kB / 0.5594 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/1.8, allocations: 159.3 kB / 0.5596 GB, free: 1.887 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/1.8, allocations: 111.4 kB / 0.5597 GB, free: 1.777 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/1.8, allocations: 20 kB / 0.5597 GB, free: 1.758 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0258/1.826, allocations: 17.75 MB / 0.577 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/1.826, allocations: 55.72 kB / 0.5771 GB, free: 15.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/1.826, allocations: 147.2 kB / 0.5772 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/1.844, allocations: 8.461 MB / 0.5855 GB, free: 7.301 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.844, allocations: 8 kB / 0.5855 GB, free: 7.293 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/1.844, allocations: 0 / 0.5855 GB, free: 7.293 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/1.844, allocations: 0 / 0.5855 GB, free: 7.293 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.003977/1.848, allocations: 1.463 MB / 0.5869 GB, free: 5.781 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.848, allocations: 16.02 kB / 0.587 GB, free: 5.766 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.249e-05/1.848, allocations: 35.56 kB / 0.587 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/1.849, allocations: 242.7 kB / 0.5872 GB, free: 5.457 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.153e-05/1.849, allocations: 46.14 kB / 0.5873 GB, free: 5.406 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/1.849, allocations: 22.77 kB / 0.5873 GB, free: 5.387 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/1.849, allocations: 314.7 kB / 0.5876 GB, free: 5.051 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/1.849, allocations: 0 / 0.5876 GB, free: 5.051 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/1.849, allocations: 16 kB / 0.5876 GB, free: 5.035 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/1.849, allocations: 11.94 kB / 0.5876 GB, free: 5.023 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/1.85, allocations: 204.2 kB / 0.5878 GB, free: 4.82 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.01793/1.868, allocations: 9.89 MB / 0.5975 GB, free: 9.891 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/1.868, allocations: 154.8 kB / 0.5976 GB, free: 9.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/1.868, allocations: 117.1 kB / 0.5977 GB, free: 9.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1568/2.025, allocations: 85.49 MB / 0.6812 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003934/2.025, allocations: 198.1 kB / 0.6814 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 1.993e-06/2.025, allocations: 0 / 0.6814 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001008/2.026, allocations: 0.4913 MB / 0.6819 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/2.026, allocations: 89.08 kB / 0.682 GB, free: 9.672 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/2.027, allocations: 210.8 kB / 0.6822 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/2.027, allocations: 25.7 kB / 0.6822 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/2.027, allocations: 152.6 kB / 0.6823 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/2.027, allocations: 134 kB / 0.6825 GB, free: 9.137 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/2.027, allocations: 57.69 kB / 0.6825 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001005/2.027, allocations: 334.8 kB / 0.6828 GB, free: 8.738 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/2.027, allocations: 100.4 kB / 0.6829 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/2.027, allocations: 153.4 kB / 0.6831 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/2.029, allocations: 0.531 MB / 0.6836 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/2.029, allocations: 0 / 0.6836 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005921/2.029, allocations: 362 kB / 0.6839 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/2.029, allocations: 4 kB / 0.6839 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/2.029, allocations: 4 kB / 0.6839 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005744/2.03, allocations: 128.9 kB / 0.6841 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.434e-05/2.03, allocations: 19.92 kB / 0.6841 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004121/2.03, allocations: 0.6069 MB / 0.6847 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/2.03, allocations: 39.89 kB / 0.6847 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/2.031, allocations: 8 kB / 0.6847 GB, free: 6.715 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.0001631/2.031, allocations: 156.1 kB / 0.6849 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/2.031, allocations: 27.66 kB / 0.6849 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006544/2.031, allocations: 0.4934 MB / 0.6854 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004391/2.032, allocations: 322.3 kB / 0.6857 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/2.032, allocations: 3.984 kB / 0.6857 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/2.032, allocations: 1.828 kB / 0.6857 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/2.033, allocations: 0.8808 MB / 0.6866 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/2.033, allocations: 0 / 0.6866 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.729e-05/2.033, allocations: 35.92 kB / 0.6866 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005715/2.034, allocations: 128.7 kB / 0.6867 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/2.034, allocations: 8 kB / 0.6867 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003668/2.034, allocations: 0.6187 MB / 0.6873 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/2.034, allocations: 0 / 0.6873 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/2.035, allocations: 451.8 kB / 0.6878 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.816e-05/2.035, allocations: 120.7 kB / 0.6879 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/2.035, allocations: 7.922 kB / 0.6879 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/2.035, allocations: 12 kB / 0.6879 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/2.035, allocations: 20.58 kB / 0.6879 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/2.035, allocations: 19.92 kB / 0.6879 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001525/2.035, allocations: 184.5 kB / 0.6881 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.035, allocations: 0 / 0.6881 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002652/2.038, allocations: 1.198 MB / 0.6893 GB, free: 1.871 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.004356/2.042, allocations: 1.798 MB / 0.691 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.1471/2.189, allocations: 319.9 kB / 0.6913 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/2.189, allocations: 0 / 0.6913 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000357/2.19, allocations: 156.8 kB / 0.6915 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/2.19, allocations: 113.6 kB / 0.6916 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000866/2.191, allocations: 0.6919 MB / 0.6923 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/2.192, allocations: 0.784 MB / 0.693 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001103/2.192, allocations: 28.89 kB / 0.6931 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.22e-05/2.192, allocations: 26.25 kB / 0.6931 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/2.192, allocations: 0 / 0.6931 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04604/2.238, allocations: 42.98 MB / 0.7351 GB, free: 205.5 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)