Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.5562/0.5562, allocations: 111.6 MB / 131.5 MB, free: 4.91 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 176.6 MB, free: 8.949 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.425e-05/2.642e-05, allocations: 4.938 kB / 176.6 MB, free: 8.945 MB / 170.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.122/1.122, allocations: 263.1 MB / 439.7 MB, free: 14.78 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3663/1.488, allocations: 181.3 MB / 0.6064 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/1.489, allocations: 15.88 kB / 0.6065 GB, free: 14.6 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:39:3-40:78:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:32:3-33:80:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/DynamicCheckValve.mo:46:3-47:80:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/DynamicCheckValve.mo:48:3-49:78:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002266/1.489, allocations: 55.44 kB / 0.6065 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0003773/1.489, allocations: 162.7 kB / 0.6067 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.02288/1.512, allocations: 10.5 MB / 0.6169 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0006522/1.513, allocations: 0.5102 MB / 0.6174 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/1.513, allocations: 227.2 kB / 0.6176 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004658/1.514, allocations: 323.2 kB / 0.6179 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/1.514, allocations: 155.5 kB / 0.6181 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 5.041e-05/1.514, allocations: 40 kB / 0.6181 GB, free: 2.605 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:525:9-525:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:708:9-708:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh1satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh2satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du1satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du2satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88:writable] Warning: 'T' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.03358/1.547, allocations: 20.03 MB / 0.6377 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000169/1.548, allocations: 115.6 kB / 0.6378 GB, free: 14.44 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001981/1.548, allocations: 159.5 kB / 0.6379 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02267/1.57, allocations: 12.27 MB / 0.6499 GB, free: 1.984 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/1.571, allocations: 0 / 0.6499 GB, free: 1.984 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.693e-06/1.571, allocations: 0 / 0.6499 GB, free: 1.984 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.344e-06/1.571, allocations: 0 / 0.6499 GB, free: 1.984 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.004687/1.575, allocations: 1.843 MB / 0.6517 GB, free: 108 kB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/1.575, allocations: 15.98 kB / 0.6517 GB, free: 92 kB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/1.575, allocations: 80.8 kB / 0.6518 GB, free: 12 kB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/1.576, allocations: 268.9 kB / 0.6521 GB, free: 15.72 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.714e-05/1.576, allocations: 80.41 kB / 0.6522 GB, free: 15.63 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/1.576, allocations: 51.91 kB / 0.6522 GB, free: 15.58 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003848/1.576, allocations: 325.5 kB / 0.6525 GB, free: 15.23 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/1.576, allocations: 0 / 0.6525 GB, free: 15.23 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/1.576, allocations: 16 kB / 0.6525 GB, free: 15.22 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/1.576, allocations: 11.94 kB / 0.6525 GB, free: 15.21 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/1.577, allocations: 123 kB / 0.6527 GB, free: 15.09 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/1.578, allocations: 1.005 MB / 0.6536 GB, free: 14.05 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/1.578, allocations: 106.4 kB / 0.6537 GB, free: 13.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.711e-05/1.578, allocations: 41.39 kB / 0.6538 GB, free: 13.89 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3438/1.922, allocations: 63.2 MB / 0.7155 GB, free: 94.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/1.922, allocations: 97.11 kB / 0.7156 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.816e-06/1.922, allocations: 0.875 kB / 0.7156 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.000599/1.922, allocations: 190.9 kB / 0.7158 GB, free: 94.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/1.923, allocations: 53.81 kB / 0.7158 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/1.923, allocations: 327.8 kB / 0.7161 GB, free: 94.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/1.923, allocations: 31.03 kB / 0.7162 GB, free: 94.13 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/1.923, allocations: 224.5 kB / 0.7164 GB, free: 94.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.412e-05/1.923, allocations: 76.22 kB / 0.7165 GB, free: 94 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.412e-05/1.923, allocations: 82.44 kB / 0.7165 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.543e-05/1.923, allocations: 341.8 kB / 0.7169 GB, free: 93.66 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.048e-05/1.923, allocations: 29.86 kB / 0.7169 GB, free: 93.66 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.688e-05/1.923, allocations: 135.6 kB / 0.717 GB, free: 93.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/1.924, allocations: 196 kB / 0.7172 GB, free: 93.43 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.924, allocations: 2.844 kB / 0.7172 GB, free: 93.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003911/1.924, allocations: 241.9 kB / 0.7174 GB, free: 93.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/1.924, allocations: 10.03 kB / 0.7175 GB, free: 93.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.924, allocations: 5.062 kB / 0.7175 GB, free: 93.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004504/1.924, allocations: 108.8 kB / 0.7176 GB, free: 93.37 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/1.925, allocations: 50.77 kB / 0.7176 GB, free: 93.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/1.926, allocations: 1.992 MB / 0.7196 GB, free: 91.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/1.926, allocations: 34.05 kB / 0.7196 GB, free: 91.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/1.926, allocations: 11.44 kB / 0.7196 GB, free: 91.55 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (checkValve.C2.diff_on_1,sourceP1.C.diff_on_2,sourceP1.fluid1,checkValve.fluid,puitsP1.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.C.ftype) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001165/1.926, allocations: 140.1 kB / 0.7197 GB, free: 91.44 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/1.926, allocations: 28.59 kB / 0.7198 GB, free: 91.44 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/1.926, allocations: 214.5 kB / 0.72 GB, free: 91.38 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/1.926, allocations: 3.312 kB / 0.72 GB, free: 91.38 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/1.926, allocations: 0 / 0.72 GB, free: 91.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/1.926, allocations: 3.094 kB / 0.72 GB, free: 91.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/1.927, allocations: 184.5 kB / 0.7201 GB, free: 91.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/1.927, allocations: 0.625 kB / 0.7201 GB, free: 91.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/1.927, allocations: 48.17 kB / 0.7202 GB, free: 91.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/1.927, allocations: 51.64 kB / 0.7202 GB, free: 91.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/1.927, allocations: 7.672 kB / 0.7203 GB, free: 91.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001662/1.927, allocations: 0.5425 MB / 0.7208 GB, free: 90.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/1.927, allocations: 0.9062 kB / 0.7208 GB, free: 90.77 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/1.927, allocations: 240 kB / 0.721 GB, free: 90.69 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.228e-05/1.927, allocations: 49.02 kB / 0.7211 GB, free: 90.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/1.927, allocations: 12.55 kB / 0.7211 GB, free: 90.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.766e-05/1.928, allocations: 6.625 kB / 0.7211 GB, free: 90.67 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.614e-05/1.928, allocations: 29.12 kB / 0.7211 GB, free: 90.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/1.928, allocations: 7.938 kB / 0.7211 GB, free: 90.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000125/1.928, allocations: 119.2 kB / 0.7212 GB, free: 90.65 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/1.928, allocations: 1.094 kB / 0.7212 GB, free: 90.65 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00364/1.931, allocations: 1.493 MB / 0.7227 GB, free: 90.64 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.005962/1.937, allocations: 2.56 MB / 0.7252 GB, free: 90.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005065/1.938, allocations: 266.7 kB / 0.7254 GB, free: 90.41 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/1.938, allocations: 9.531 kB / 0.7254 GB, free: 90.41 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/1.938, allocations: 79.75 kB / 0.7255 GB, free: 90.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/1.938, allocations: 88.7 kB / 0.7256 GB, free: 90.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/1.939, allocations: 0.7248 MB / 0.7263 GB, free: 90.01 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.22e-05/1.94, allocations: 109.8 kB / 0.7264 GB, free: 89.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001357/1.94, allocations: 47.56 kB / 0.7265 GB, free: 89.92 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/1.94, allocations: 112.1 kB / 0.7266 GB, free: 89.88 MB / 0.6198 GB Notification: Performance of SimCode: time 1.522e-06/1.94, allocations: 0 / 0.7266 GB, free: 89.88 MB / 0.6198 GB Notification: Performance of Templates: time 0.04926/1.989, allocations: 55.65 MB / 0.7809 GB, free: 67.89 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.056631872896105]