Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.5692/0.5692, allocations: 120.4 MB / 140.2 MB, free: 12.98 MB / 138.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 217.9 MB, free: 8.676 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.967e-05, allocations: 4.688 kB / 217.9 MB, free: 8.672 MB / 202.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 0.9974/0.9974, allocations: 254.4 MB / 472.3 MB, free: 8.688 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2652/1.263, allocations: 30.87 MB / 0.4914 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/1.263, allocations: 2.844 kB / 0.4914 GB, free: 0.9102 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004696/1.263, allocations: 123.8 kB / 0.4915 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003311/1.264, allocations: 162.1 kB / 0.4917 GB, free: 0.8867 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02295/1.287, allocations: 9.951 MB / 0.5014 GB, free: 14.88 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007778/1.287, allocations: 468.5 kB / 0.5018 GB, free: 14.63 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/1.288, allocations: 139.5 kB / 0.502 GB, free: 14.55 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003873/1.288, allocations: 281.3 kB / 0.5022 GB, free: 14.39 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/1.288, allocations: 129.5 kB / 0.5024 GB, free: 14.32 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/1.288, allocations: 25.94 kB / 0.5024 GB, free: 14.32 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.027/1.315, allocations: 16.8 MB / 0.5188 GB, free: 2.355 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/1.315, allocations: 69.23 kB / 0.5189 GB, free: 2.293 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/1.316, allocations: 109.9 kB / 0.519 GB, free: 2.191 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02245/1.338, allocations: 10.9 MB / 0.5296 GB, free: 7.785 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/1.338, allocations: 0.5938 kB / 0.5296 GB, free: 7.785 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.338, allocations: 0 / 0.5296 GB, free: 7.785 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/1.338, allocations: 0.5312 kB / 0.5296 GB, free: 7.785 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004311/1.342, allocations: 1.561 MB / 0.5311 GB, free: 6.191 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/1.342, allocations: 8.625 kB / 0.5311 GB, free: 6.184 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/1.343, allocations: 53.83 kB / 0.5312 GB, free: 6.133 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/1.343, allocations: 208.4 kB / 0.5314 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.029e-05/1.343, allocations: 67.91 kB / 0.5315 GB, free: 5.828 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/1.343, allocations: 26.25 kB / 0.5315 GB, free: 5.805 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/1.343, allocations: 362.5 kB / 0.5318 GB, free: 5.422 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/1.343, allocations: 0 / 0.5318 GB, free: 5.422 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/1.343, allocations: 8 kB / 0.5318 GB, free: 5.414 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/1.343, allocations: 12.44 kB / 0.5318 GB, free: 5.402 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/1.344, allocations: 234.9 kB / 0.5321 GB, free: 5.176 MB / 474.7 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.01005/1.354, allocations: 6.023 MB / 0.5379 GB, free: 15.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/1.354, allocations: 247.5 kB / 0.5382 GB, free: 14.99 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/1.354, allocations: 129.5 kB / 0.5383 GB, free: 14.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08025/1.435, allocations: 48.42 MB / 0.5856 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/1.435, allocations: 224.4 kB / 0.5858 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.246e-06/1.435, allocations: 1.734 kB / 0.5858 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48): time 0.000821/1.436, allocations: 483.1 kB / 0.5863 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/1.436, allocations: 85.03 kB / 0.5863 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/1.436, allocations: 229.7 kB / 0.5866 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/1.436, allocations: 29.7 kB / 0.5866 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.276e-05/1.436, allocations: 166.4 kB / 0.5868 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.753e-05/1.436, allocations: 163.4 kB / 0.5869 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.6e-05/1.436, allocations: 61.92 kB / 0.587 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.48e-05/1.436, allocations: 342.8 kB / 0.5873 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/1.437, allocations: 108.7 kB / 0.5874 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/1.437, allocations: 172.6 kB / 0.5876 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/1.437, allocations: 296.2 kB / 0.5878 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.437, allocations: 0.8438 kB / 0.5878 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005396/1.438, allocations: 432 kB / 0.5883 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/1.438, allocations: 4 kB / 0.5883 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/1.438, allocations: 0 / 0.5883 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006143/1.438, allocations: 194.2 kB / 0.5884 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.587e-05/1.438, allocations: 32.53 kB / 0.5885 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/1.44, allocations: 2.298 MB / 0.5907 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/1.44, allocations: 39.75 kB / 0.5908 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/1.44, allocations: 16.64 kB / 0.5908 GB, free: 8.867 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001333/1.44, allocations: 144.4 kB / 0.5909 GB, free: 8.719 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/1.44, allocations: 31.81 kB / 0.5909 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005525/1.441, allocations: 0.5723 MB / 0.5915 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000328/1.441, allocations: 367.4 kB / 0.5919 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.441, allocations: 1.594 kB / 0.5919 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/1.441, allocations: 0 / 0.5919 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008389/1.442, allocations: 0.8517 MB / 0.5927 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/1.442, allocations: 7.938 kB / 0.5927 GB, free: 6.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/1.442, allocations: 55.91 kB / 0.5927 GB, free: 6.766 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/1.443, allocations: 104.8 kB / 0.5928 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/1.443, allocations: 15.98 kB / 0.5929 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003148/1.443, allocations: 0.6265 MB / 0.5935 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.443, allocations: 8.953 kB / 0.5935 GB, free: 5.984 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/1.444, allocations: 0.6568 MB / 0.5941 GB, free: 5.309 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 7.471e-05/1.444, allocations: 48.31 kB / 0.5942 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/1.444, allocations: 11.94 kB / 0.5942 GB, free: 5.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.409e-05/1.444, allocations: 15.98 kB / 0.5942 GB, free: 5.234 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.02e-05/1.444, allocations: 35.92 kB / 0.5942 GB, free: 5.199 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/1.444, allocations: 17 kB / 0.5942 GB, free: 5.184 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001315/1.444, allocations: 201.3 kB / 0.5944 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/1.444, allocations: 0 / 0.5944 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002904/1.447, allocations: 1.243 MB / 0.5957 GB, free: 3.742 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003851/1.451, allocations: 1.904 MB / 0.5975 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0007658/1.451, allocations: 474.7 kB / 0.598 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/1.451, allocations: 0 / 0.598 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002382/1.452, allocations: 181.6 kB / 0.5981 GB, free: 1.402 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/1.452, allocations: 121.8 kB / 0.5983 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/1.453, allocations: 0.8254 MB / 0.5991 GB, free: 452 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/1.453, allocations: 205.9 kB / 0.5993 GB, free: 228 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.308e-05/1.453, allocations: 40.48 kB / 0.5993 GB, free: 188 kB / 0.5261 GB Notification: Performance of SimCode: time 1.914e-06/1.453, allocations: 0 / 0.5993 GB, free: 188 kB / 0.5261 GB Notification: Performance of Templates: time 0.03077/1.484, allocations: 27.17 MB / 0.6258 GB, free: 5.129 MB / 0.5573 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.113732051104307] Failed to read output from testmodel.py, exit status != 0: 1.7512575341388583 1.6663454420000001 0.325710377 Calling exit ...