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.8909/0.8909, allocations: 150.9 MB / 167.1 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003462, allocations: 11.98 kB / 205.9 MB, free: 9.02 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 31.33 MB / 237.3 MB, free: 5.719 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.577/1.703, allocations: 294.5 MB / 0.5193 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03781/1.741, allocations: 34.49 MB / 0.553 GB, free: 10.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/1.741, allocations: 0 / 0.553 GB, free: 10.84 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.0003367/1.741, allocations: 112.9 kB / 0.5531 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/1.742, allocations: 107.1 kB / 0.5532 GB, free: 10.63 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.02254/1.764, allocations: 9.585 MB / 0.5626 GB, free: 1.039 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005345/1.765, allocations: 370.3 kB / 0.5629 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/1.765, allocations: 126.3 kB / 0.563 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/1.765, allocations: 151.3 kB / 0.5632 GB, free: 416 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/1.765, allocations: 119.4 kB / 0.5633 GB, free: 296 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/1.765, allocations: 20 kB / 0.5633 GB, free: 276 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02929/1.795, allocations: 17.9 MB / 0.5808 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-05/1.795, allocations: 51.78 kB / 0.5808 GB, free: 14.29 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/1.795, allocations: 143.2 kB / 0.581 GB, free: 14.15 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/1.812, allocations: 8.437 MB / 0.5892 GB, free: 5.695 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/1.812, allocations: 0 / 0.5892 GB, free: 5.695 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.783e-06/1.812, allocations: 0 / 0.5892 GB, free: 5.695 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/1.812, allocations: 0 / 0.5892 GB, free: 5.695 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.003475/1.816, allocations: 1.478 MB / 0.5907 GB, free: 4.168 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/1.816, allocations: 20.02 kB / 0.5907 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.508e-05/1.816, allocations: 35.56 kB / 0.5907 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/1.816, allocations: 234 kB / 0.5909 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.374e-05/1.816, allocations: 46.14 kB / 0.591 GB, free: 3.797 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/1.816, allocations: 16 kB / 0.591 GB, free: 3.781 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/1.816, allocations: 326.7 kB / 0.5913 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/1.816, allocations: 0 / 0.5913 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/1.817, allocations: 12 kB / 0.5913 GB, free: 3.418 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/1.817, allocations: 15.94 kB / 0.5913 GB, free: 3.402 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/1.817, allocations: 200.1 kB / 0.5915 GB, free: 3.207 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.01909/1.836, allocations: 9.938 MB / 0.6012 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/1.836, allocations: 154.8 kB / 0.6014 GB, free: 8.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/1.836, allocations: 117.3 kB / 0.6015 GB, free: 7.953 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1645/2.001, allocations: 85.99 MB / 0.6855 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003726/2.001, allocations: 197 kB / 0.6856 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.485e-06/2.001, allocations: 0 / 0.6856 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001053/2.003, allocations: 0.499 MB / 0.6861 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/2.003, allocations: 89.14 kB / 0.6862 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/2.003, allocations: 206.8 kB / 0.6864 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/2.003, allocations: 29.7 kB / 0.6864 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.979e-05/2.003, allocations: 148.6 kB / 0.6866 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.212e-05/2.003, allocations: 134 kB / 0.6867 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/2.003, allocations: 57.69 kB / 0.6868 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001162/2.003, allocations: 334.8 kB / 0.6871 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/2.003, allocations: 100.3 kB / 0.6872 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/2.004, allocations: 161.4 kB / 0.6873 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/2.005, allocations: 0.5146 MB / 0.6878 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/2.005, allocations: 0 / 0.6878 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006572/2.006, allocations: 367.2 kB / 0.6882 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/2.006, allocations: 7.938 kB / 0.6882 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/2.006, allocations: 4 kB / 0.6882 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005846/2.006, allocations: 120.7 kB / 0.6883 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.904e-05/2.006, allocations: 24.11 kB / 0.6883 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004597/2.007, allocations: 0.6115 MB / 0.6889 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/2.007, allocations: 43.61 kB / 0.689 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/2.007, allocations: 8 kB / 0.689 GB, free: 4.547 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.0001766/2.007, allocations: 152 kB / 0.6891 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/2.007, allocations: 32.2 kB / 0.6892 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/2.008, allocations: 0.4973 MB / 0.6896 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000488/2.008, allocations: 318.3 kB / 0.69 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/2.008, allocations: 4 kB / 0.69 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/2.008, allocations: 0.9375 kB / 0.69 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/2.01, allocations: 0.8769 MB / 0.6908 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/2.01, allocations: 3.984 kB / 0.6908 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.951e-05/2.01, allocations: 27.92 kB / 0.6908 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005607/2.01, allocations: 136.7 kB / 0.691 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/2.01, allocations: 0 / 0.691 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004031/2.011, allocations: 0.6167 MB / 0.6916 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/2.011, allocations: 0 / 0.6916 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/2.011, allocations: 461.8 kB / 0.692 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.906e-05/2.011, allocations: 116.9 kB / 0.6921 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/2.012, allocations: 8 kB / 0.6921 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/2.012, allocations: 11.98 kB / 0.6921 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/2.012, allocations: 23.92 kB / 0.6922 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/2.012, allocations: 7.984 kB / 0.6922 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001658/2.012, allocations: 192.4 kB / 0.6924 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/2.012, allocations: 0 / 0.6924 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1514/2.163, allocations: 1.197 MB / 0.6935 GB, free: 226.2 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.004584/2.168, allocations: 1.718 MB / 0.6952 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007244/2.169, allocations: 321.8 kB / 0.6955 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/2.169, allocations: 1.781 kB / 0.6955 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003305/2.169, allocations: 150.5 kB / 0.6957 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/2.17, allocations: 123.9 kB / 0.6958 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008071/2.171, allocations: 0.5706 MB / 0.6963 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/2.171, allocations: 0.7803 MB / 0.6971 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.772e-05/2.171, allocations: 28.69 kB / 0.6971 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/2.171, allocations: 24.25 kB / 0.6971 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/2.171, allocations: 1.969 kB / 0.6971 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04362/2.215, allocations: 42.62 MB / 0.7388 GB, free: 204.2 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)