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.4568/0.4568, allocations: 111.6 MB / 131.4 MB, free: 4.418 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 1.493e-06/1.493e-06, allocations: 0 / 176.5 MB, free: 8.977 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.929e-06/1.142e-05, allocations: 2.312 kB / 176.5 MB, free: 8.973 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 0.962/0.962, allocations: 257.3 MB / 433.8 MB, free: 15.99 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3113/1.273, allocations: 178.6 MB / 0.598 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002032/1.274, allocations: 11.88 kB / 0.598 GB, free: 3.164 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.0001843/1.274, allocations: 63.44 kB / 0.5981 GB, free: 3.102 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00029/1.274, allocations: 166.5 kB / 0.5982 GB, free: 2.938 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.01953/1.294, allocations: 11.77 MB / 0.6097 GB, free: 7.137 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004616/1.294, allocations: 0.5102 MB / 0.6102 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/1.294, allocations: 217.2 kB / 0.6104 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004279/1.295, allocations: 319.3 kB / 0.6107 GB, free: 6.094 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/1.295, allocations: 163.5 kB / 0.6109 GB, free: 5.934 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/1.295, allocations: 36 kB / 0.6109 GB, free: 5.898 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0209/1.316, allocations: 18.67 MB / 0.6292 GB, free: 3.207 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.000136/1.316, allocations: 107.6 kB / 0.6293 GB, free: 3.102 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/1.316, allocations: 155.5 kB / 0.6294 GB, free: 2.953 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0178/1.334, allocations: 12.28 MB / 0.6414 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/1.334, allocations: 0 / 0.6414 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.393e-06/1.334, allocations: 0 / 0.6414 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.93e-06/1.334, allocations: 0 / 0.6414 GB, free: 6.641 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.003275/1.337, allocations: 2.018 MB / 0.6434 GB, free: 4.57 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/1.337, allocations: 15.98 kB / 0.6434 GB, free: 4.555 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/1.337, allocations: 95.66 kB / 0.6435 GB, free: 4.461 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/1.338, allocations: 319.5 kB / 0.6438 GB, free: 4.125 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/1.338, allocations: 85.03 kB / 0.6439 GB, free: 4.031 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/1.338, allocations: 40 kB / 0.6439 GB, free: 3.992 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/1.338, allocations: 338.5 kB / 0.6442 GB, free: 3.621 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/1.338, allocations: 0 / 0.6442 GB, free: 3.621 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/1.338, allocations: 12 kB / 0.6442 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/1.338, allocations: 11.94 kB / 0.6442 GB, free: 3.598 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001547/1.338, allocations: 143 kB / 0.6444 GB, free: 3.461 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/1.339, allocations: 1.419 MB / 0.6458 GB, free: 1.984 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/1.34, allocations: 119.1 kB / 0.6459 GB, free: 1.855 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.756e-05/1.34, allocations: 47.64 kB / 0.6459 GB, free: 1.805 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09557/1.435, allocations: 60.78 MB / 0.7053 GB, free: 5.016 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/1.435, allocations: 105 kB / 0.7054 GB, free: 4.898 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/1.435, allocations: 0 / 0.7054 GB, free: 4.898 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0005719/1.436, allocations: 277 kB / 0.7056 GB, free: 4.621 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/1.436, allocations: 55.41 kB / 0.7057 GB, free: 4.555 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/1.436, allocations: 386.3 kB / 0.7061 GB, free: 4.164 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/1.436, allocations: 33.7 kB / 0.7061 GB, free: 4.125 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/1.436, allocations: 307 kB / 0.7064 GB, free: 3.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/1.436, allocations: 71.38 kB / 0.7065 GB, free: 3.75 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.873e-05/1.436, allocations: 91.53 kB / 0.7065 GB, free: 3.652 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.00011/1.437, allocations: 0.5078 MB / 0.707 GB, free: 3.133 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.066e-05/1.437, allocations: 36.62 kB / 0.7071 GB, free: 3.098 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/1.437, allocations: 182.1 kB / 0.7072 GB, free: 2.859 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/1.437, allocations: 241.8 kB / 0.7075 GB, free: 2.562 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.437, allocations: 0 / 0.7075 GB, free: 2.562 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003885/1.437, allocations: 334.1 kB / 0.7078 GB, free: 2.223 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/1.437, allocations: 9.844 kB / 0.7078 GB, free: 2.215 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/1.437, allocations: 4 kB / 0.7078 GB, free: 2.211 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/1.438, allocations: 124.3 kB / 0.7079 GB, free: 2.082 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.544e-05/1.438, allocations: 47.91 kB / 0.708 GB, free: 2.035 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1994/1.637, allocations: 2.915 MB / 0.7108 GB, free: 95.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/1.637, allocations: 32.27 kB / 0.7109 GB, free: 95.65 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/1.637, allocations: 15.41 kB / 0.7109 GB, free: 95.65 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.0001311/1.638, allocations: 182.6 kB / 0.711 GB, free: 95.49 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/1.638, allocations: 45.08 kB / 0.7111 GB, free: 95.49 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/1.638, allocations: 295 kB / 0.7114 GB, free: 95.43 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/1.638, allocations: 6.203 kB / 0.7114 GB, free: 95.43 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/1.638, allocations: 0.625 kB / 0.7114 GB, free: 95.43 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/1.638, allocations: 4.266 kB / 0.7114 GB, free: 95.43 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/1.638, allocations: 225.8 kB / 0.7116 GB, free: 95.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/1.638, allocations: 2.5 kB / 0.7116 GB, free: 95.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/1.638, allocations: 44.84 kB / 0.7116 GB, free: 95.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002238/1.639, allocations: 53.27 kB / 0.7117 GB, free: 95.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/1.639, allocations: 7.578 kB / 0.7117 GB, free: 95.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001908/1.639, allocations: 0.8193 MB / 0.7125 GB, free: 94.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/1.639, allocations: 0.625 kB / 0.7125 GB, free: 94.51 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/1.639, allocations: 330.2 kB / 0.7128 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.939e-05/1.639, allocations: 57.5 kB / 0.7129 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/1.639, allocations: 4.25 kB / 0.7129 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.31e-05/1.639, allocations: 10.89 kB / 0.7129 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/1.64, allocations: 30.91 kB / 0.7129 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/1.64, allocations: 6.672 kB / 0.7129 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001223/1.64, allocations: 242.9 kB / 0.7131 GB, free: 94.29 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.64, allocations: 0 / 0.7131 GB, free: 94.29 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003299/1.643, allocations: 1.49 MB / 0.7146 GB, free: 94.29 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.004515/1.648, allocations: 2.502 MB / 0.717 GB, free: 94.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004412/1.648, allocations: 337.6 kB / 0.7174 GB, free: 93.99 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.648, allocations: 0.8438 kB / 0.7174 GB, free: 93.99 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/1.648, allocations: 98.02 kB / 0.7175 GB, free: 93.97 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/1.648, allocations: 85.33 kB / 0.7175 GB, free: 93.97 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/1.65, allocations: 0.7339 MB / 0.7183 GB, free: 93.61 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.024e-05/1.65, allocations: 110.5 kB / 0.7184 GB, free: 93.53 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001095/1.65, allocations: 45.16 kB / 0.7184 GB, free: 93.52 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/1.65, allocations: 137 kB / 0.7185 GB, free: 93.46 MB / 0.6198 GB Notification: Performance of SimCode: time 1.222e-06/1.65, allocations: 2.156 kB / 0.7185 GB, free: 93.46 MB / 0.6198 GB Notification: Performance of Templates: time 0.04369/1.694, allocations: 56.44 MB / 0.7737 GB, free: 71.92 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.733358567580581]