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.8285/0.8285, allocations: 111.6 MB / 131 MB, free: 5.082 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.725e-06/2.725e-06, allocations: 0 / 175.7 MB, free: 9.512 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.854e-05/3.127e-05, allocations: 7.281 kB / 175.7 MB, free: 9.508 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.732/1.732, allocations: 255 MB / 430.6 MB, free: 200 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.4494/2.181, allocations: 181.5 MB / 0.5978 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003204/2.181, allocations: 11.88 kB / 0.5978 GB, free: 10.35 MB / 0.5105 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.0002549/2.182, allocations: 63.44 kB / 0.5979 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0004335/2.182, allocations: 162.5 kB / 0.598 GB, free: 10.13 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88:writable] Warning: T 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.03192/2.214, allocations: 11.75 MB / 0.6095 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0007962/2.215, allocations: 0.5064 MB / 0.61 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003382/2.215, allocations: 217.2 kB / 0.6102 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000495/2.216, allocations: 319.2 kB / 0.6105 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/2.216, allocations: 175.5 kB / 0.6107 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 7.449e-05/2.216, allocations: 40 kB / 0.6107 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0373/2.253, allocations: 18.66 MB / 0.629 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002225/2.253, allocations: 115.6 kB / 0.6291 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.000283/2.254, allocations: 155.6 kB / 0.6292 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02793/2.282, allocations: 12.44 MB / 0.6414 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/2.282, allocations: 0 / 0.6414 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.593e-06/2.282, allocations: 0 / 0.6414 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.496e-06/2.282, allocations: 4 kB / 0.6414 GB, free: 13.66 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.005456/2.287, allocations: 2.073 MB / 0.6434 GB, free: 11.54 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/2.287, allocations: 11.98 kB / 0.6434 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/2.287, allocations: 95.62 kB / 0.6435 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005397/2.288, allocations: 315.7 kB / 0.6438 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/2.288, allocations: 80.41 kB / 0.6439 GB, free: 11.01 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-05/2.288, allocations: 39.94 kB / 0.6439 GB, free: 10.97 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007635/2.289, allocations: 430.5 kB / 0.6443 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/2.289, allocations: 0 / 0.6443 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/2.289, allocations: 16 kB / 0.6443 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/2.289, allocations: 15.94 kB / 0.6444 GB, free: 10.48 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005901/2.29, allocations: 274.4 kB / 0.6446 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/2.292, allocations: 1.608 MB / 0.6462 GB, free: 8.547 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/2.292, allocations: 209.5 kB / 0.6464 GB, free: 8.332 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/2.293, allocations: 71.67 kB / 0.6465 GB, free: 8.258 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2594/2.552, allocations: 69.3 MB / 0.7141 GB, free: 2.879 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/2.552, allocations: 150.2 kB / 0.7143 GB, free: 2.719 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.124e-06/2.552, allocations: 0 / 0.7143 GB, free: 2.719 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.001071/2.553, allocations: 331.2 kB / 0.7146 GB, free: 2.387 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/2.553, allocations: 55.41 kB / 0.7146 GB, free: 2.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005945/2.554, allocations: 458.5 kB / 0.7151 GB, free: 1.859 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/2.554, allocations: 29.7 kB / 0.7151 GB, free: 1.824 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/2.554, allocations: 303.1 kB / 0.7154 GB, free: 1.523 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.891e-05/2.554, allocations: 83.38 kB / 0.7155 GB, free: 1.441 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/2.555, allocations: 99.61 kB / 0.7156 GB, free: 1.336 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002964/2.555, allocations: 0.5196 MB / 0.7161 GB, free: 0.8047 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/2.555, allocations: 80.55 kB / 0.7162 GB, free: 0.7266 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/2.555, allocations: 220.6 kB / 0.7164 GB, free: 460 kB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/2.556, allocations: 307.9 kB / 0.7167 GB, free: 88 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/2.556, allocations: 4 kB / 0.7167 GB, free: 84 kB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.1428/2.699, allocations: 396.2 kB / 0.717 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/2.699, allocations: 5.438 kB / 0.717 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/2.699, allocations: 4.641 kB / 0.7171 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009374/2.7, allocations: 155.5 kB / 0.7172 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/2.7, allocations: 55.11 kB / 0.7173 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/2.702, allocations: 3.131 MB / 0.7203 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002707/2.702, allocations: 41 kB / 0.7203 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/2.702, allocations: 20.75 kB / 0.7204 GB, free: 293.9 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 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * 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.0001881/2.702, allocations: 207 kB / 0.7206 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.699e-05/2.703, allocations: 36.86 kB / 0.7206 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006901/2.703, allocations: 331 kB / 0.7209 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/2.703, allocations: 3.812 kB / 0.7209 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/2.703, allocations: 0.625 kB / 0.7209 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/2.703, allocations: 0 / 0.7209 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/2.704, allocations: 343.5 kB / 0.7212 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/2.704, allocations: 7.688 kB / 0.7213 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/2.704, allocations: 55.14 kB / 0.7213 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003705/2.704, allocations: 60.03 kB / 0.7214 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/2.704, allocations: 9.406 kB / 0.7214 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003238/2.705, allocations: 0.835 MB / 0.7222 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/2.705, allocations: 0 / 0.7222 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/2.705, allocations: 399.3 kB / 0.7226 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/2.705, allocations: 63.98 kB / 0.7226 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/2.705, allocations: 0 / 0.7226 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/2.706, allocations: 26.8 kB / 0.7227 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/2.706, allocations: 27.28 kB / 0.7227 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/2.706, allocations: 11.78 kB / 0.7227 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002176/2.706, allocations: 283.9 kB / 0.723 GB, free: 292.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/2.706, allocations: 0 / 0.723 GB, free: 292.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003156/2.709, allocations: 1.497 MB / 0.7244 GB, free: 292.2 MB / 0.6198 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 (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.00649/2.716, allocations: 2.408 MB / 0.7268 GB, free: 292 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008183/2.716, allocations: 414.7 kB / 0.7272 GB, free: 291.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/2.716, allocations: 1.906 kB / 0.7272 GB, free: 291.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002573/2.717, allocations: 127.3 kB / 0.7273 GB, free: 291.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/2.717, allocations: 85 kB / 0.7274 GB, free: 291.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/2.718, allocations: 0.751 MB / 0.7281 GB, free: 291 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/2.718, allocations: 208 kB / 0.7283 GB, free: 290.9 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001449/2.718, allocations: 45.95 kB / 0.7284 GB, free: 290.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/2.719, allocations: 39.61 kB / 0.7284 GB, free: 290.8 MB / 0.6198 GB Notification: Performance of SimCode: time 7.82e-07/2.719, allocations: 0 / 0.7284 GB, free: 290.8 MB / 0.6198 GB Notification: Performance of Templates: time 0.05028/2.769, allocations: 48.44 MB / 0.7757 GB, free: 243.2 MB / 0.6198 GB " [Timeout remaining time 657] 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 14.815868651960045]