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.4706/0.4706, allocations: 111.6 MB / 131.2 MB, free: 5.066 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.313e-06/1.313e-06, allocations: 0 / 176.2 MB, free: 9.258 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.184e-05/1.316e-05, allocations: 5.125 kB / 176.2 MB, free: 9.254 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.9692/0.9692, allocations: 257.3 MB / 433.4 MB, free: 104 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3122/1.281, allocations: 181.9 MB / 0.601 GB, free: 372 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/1.282, allocations: 11.88 kB / 0.601 GB, free: 360 kB / 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.0001922/1.282, allocations: 63.42 kB / 0.601 GB, free: 296 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002943/1.282, allocations: 162.6 kB / 0.6012 GB, free: 132 kB / 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.01947/1.302, allocations: 11.77 MB / 0.6127 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004657/1.302, allocations: 0.5142 MB / 0.6132 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/1.302, allocations: 213.2 kB / 0.6134 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003114/1.303, allocations: 323.2 kB / 0.6137 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/1.303, allocations: 155.6 kB / 0.6139 GB, free: 3.129 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/1.303, allocations: 40 kB / 0.6139 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02193/1.325, allocations: 18.66 MB / 0.6321 GB, free: 408 kB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.000126/1.325, allocations: 107.6 kB / 0.6322 GB, free: 300 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001452/1.325, allocations: 159.4 kB / 0.6324 GB, free: 144 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01527/1.34, allocations: 12.28 MB / 0.6444 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/1.34, allocations: 0 / 0.6444 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.613e-06/1.34, allocations: 0 / 0.6444 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.182e-06/1.34, allocations: 0 / 0.6444 GB, free: 3.828 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.003324/1.344, allocations: 2.015 MB / 0.6463 GB, free: 1.762 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/1.344, allocations: 11.98 kB / 0.6463 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/1.344, allocations: 96.28 kB / 0.6464 GB, free: 1.656 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/1.344, allocations: 315.6 kB / 0.6467 GB, free: 1.324 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.061e-05/1.344, allocations: 80.41 kB / 0.6468 GB, free: 1.234 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/1.344, allocations: 40 kB / 0.6469 GB, free: 1.195 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003948/1.345, allocations: 358.5 kB / 0.6472 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/1.345, allocations: 4 kB / 0.6472 GB, free: 0.8008 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/1.345, allocations: 16 kB / 0.6472 GB, free: 0.7852 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/1.345, allocations: 16.5 kB / 0.6472 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/1.345, allocations: 171.7 kB / 0.6474 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/1.346, allocations: 1.473 MB / 0.6488 GB, free: 15.07 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/1.346, allocations: 136 kB / 0.649 GB, free: 14.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.868e-05/1.346, allocations: 59.59 kB / 0.649 GB, free: 14.86 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3219/1.668, allocations: 69.31 MB / 0.7167 GB, free: 95.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/1.668, allocations: 113 kB / 0.7168 GB, free: 95.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 1.843e-06/1.668, allocations: 0 / 0.7168 GB, free: 95.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0005745/1.669, allocations: 265.5 kB / 0.7171 GB, free: 95.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.715e-05/1.669, allocations: 60.22 kB / 0.7171 GB, free: 95.54 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/1.669, allocations: 391 kB / 0.7175 GB, free: 95.36 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/1.669, allocations: 30.33 kB / 0.7175 GB, free: 95.33 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/1.669, allocations: 295.7 kB / 0.7178 GB, free: 95.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/1.669, allocations: 77.25 kB / 0.7179 GB, free: 95.14 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/1.67, allocations: 88.22 kB / 0.718 GB, free: 95.11 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.143e-05/1.67, allocations: 0.5095 MB / 0.7185 GB, free: 94.62 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/1.67, allocations: 45.81 kB / 0.7185 GB, free: 94.62 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/1.67, allocations: 190.3 kB / 0.7187 GB, free: 94.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/1.67, allocations: 252.2 kB / 0.7189 GB, free: 94.27 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.67, allocations: 3.547 kB / 0.7189 GB, free: 94.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004137/1.67, allocations: 328.8 kB / 0.7192 GB, free: 94.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.67, allocations: 7.562 kB / 0.7192 GB, free: 94.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/1.67, allocations: 3.656 kB / 0.7192 GB, free: 94.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004167/1.671, allocations: 124.8 kB / 0.7194 GB, free: 94.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/1.671, allocations: 50.34 kB / 0.7194 GB, free: 94.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/1.672, allocations: 2.962 MB / 0.7223 GB, free: 91.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/1.672, allocations: 32.28 kB / 0.7223 GB, free: 91.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/1.672, allocations: 16.97 kB / 0.7224 GB, free: 91.39 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 8.291e-05/1.672, allocations: 181.9 kB / 0.7225 GB, free: 91.23 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/1.672, allocations: 39.81 kB / 0.7226 GB, free: 91.21 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/1.673, allocations: 272 kB / 0.7228 GB, free: 91.14 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/1.673, allocations: 12.31 kB / 0.7228 GB, free: 91.14 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/1.673, allocations: 0 / 0.7228 GB, free: 91.14 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.673, allocations: 3.938 kB / 0.7228 GB, free: 91.14 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/1.673, allocations: 284.1 kB / 0.7231 GB, free: 91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.673, allocations: 0 / 0.7231 GB, free: 91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/1.673, allocations: 42.83 kB / 0.7232 GB, free: 91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/1.673, allocations: 55.19 kB / 0.7232 GB, free: 90.98 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/1.673, allocations: 12.03 kB / 0.7232 GB, free: 90.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001642/1.673, allocations: 0.8183 MB / 0.724 GB, free: 90.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/1.673, allocations: 1.062 kB / 0.724 GB, free: 90.19 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/1.673, allocations: 318.6 kB / 0.7243 GB, free: 90.06 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.493e-05/1.674, allocations: 60.28 kB / 0.7244 GB, free: 90.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/1.674, allocations: 6.594 kB / 0.7244 GB, free: 90.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.724e-05/1.674, allocations: 5.375 kB / 0.7244 GB, free: 90.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/1.674, allocations: 28.38 kB / 0.7244 GB, free: 90.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/1.674, allocations: 8.672 kB / 0.7244 GB, free: 90.04 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001056/1.674, allocations: 252.9 kB / 0.7247 GB, free: 89.91 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.674, allocations: 0 / 0.7247 GB, free: 89.91 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002161/1.676, allocations: 1.497 MB / 0.7261 GB, free: 89.9 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.003264/1.679, allocations: 2.408 MB / 0.7285 GB, free: 89.72 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003859/1.68, allocations: 351.2 kB / 0.7288 GB, free: 89.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.68, allocations: 256 / 0.7288 GB, free: 89.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/1.68, allocations: 104.4 kB / 0.7289 GB, free: 89.52 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/1.68, allocations: 81.03 kB / 0.729 GB, free: 89.51 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/1.681, allocations: 0.7444 MB / 0.7297 GB, free: 89.08 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.443e-05/1.681, allocations: 110.5 kB / 0.7298 GB, free: 89 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.445e-05/1.681, allocations: 46.48 kB / 0.7299 GB, free: 88.99 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.785e-05/1.681, allocations: 34.84 kB / 0.7299 GB, free: 88.98 MB / 0.6198 GB Notification: Performance of SimCode: time 7.32e-07/1.681, allocations: 0 / 0.7299 GB, free: 88.98 MB / 0.6198 GB Notification: Performance of Templates: time 0.04163/1.723, allocations: 59.91 MB / 0.7884 GB, free: 59.67 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: 7.130359324160963]