Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.5257/0.5257, allocations: 111.6 MB / 131.2 MB, free: 4.617 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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 176.2 MB, free: 9.176 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.3e-05, allocations: 4.984 kB / 176.2 MB, free: 9.172 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.SimpleExamples.TestDynamicCheckValve): time 1.083/1.083, allocations: 257.3 MB / 433.6 MB, free: 72 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3343/1.417, allocations: 182 MB / 0.6011 GB, free: 284 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/1.417, allocations: 15.88 kB / 0.6011 GB, free: 268 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.0002101/1.417, allocations: 59.44 kB / 0.6012 GB, free: 208 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0003306/1.418, allocations: 166.5 kB / 0.6013 GB, free: 40 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.02155/1.439, allocations: 11.78 MB / 0.6128 GB, free: 4.234 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005228/1.44, allocations: 0.5063 MB / 0.6133 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/1.44, allocations: 216.6 kB / 0.6135 GB, free: 3.512 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003432/1.44, allocations: 315.3 kB / 0.6138 GB, free: 3.203 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/1.441, allocations: 163.5 kB / 0.614 GB, free: 3.043 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/1.441, allocations: 44 kB / 0.614 GB, free: 3 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02407/1.465, allocations: 18.66 MB / 0.6322 GB, free: 320 kB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.000159/1.465, allocations: 115.6 kB / 0.6323 GB, free: 204 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001841/1.465, allocations: 155.6 kB / 0.6325 GB, free: 48 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01877/1.484, allocations: 12.28 MB / 0.6445 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.484, allocations: 0 / 0.6445 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.212e-06/1.484, allocations: 0 / 0.6445 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.727e-06/1.484, allocations: 4 kB / 0.6445 GB, free: 3.727 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.003771/1.488, allocations: 2.015 MB / 0.6465 GB, free: 1.66 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/1.488, allocations: 15.98 kB / 0.6465 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002007/1.488, allocations: 96.3 kB / 0.6466 GB, free: 1.551 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/1.488, allocations: 315.6 kB / 0.6469 GB, free: 1.219 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.449e-05/1.488, allocations: 80.41 kB / 0.6469 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/1.488, allocations: 43.98 kB / 0.647 GB, free: 1.086 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000431/1.489, allocations: 358.5 kB / 0.6473 GB, free: 0.6953 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/1.489, allocations: 0 / 0.6473 GB, free: 0.6953 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/1.489, allocations: 16 kB / 0.6473 GB, free: 0.6797 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/1.489, allocations: 15.94 kB / 0.6474 GB, free: 0.6641 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/1.489, allocations: 176.4 kB / 0.6475 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/1.49, allocations: 1.481 MB / 0.649 GB, free: 14.95 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/1.491, allocations: 163 kB / 0.6491 GB, free: 14.78 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.672e-05/1.491, allocations: 52.28 kB / 0.6492 GB, free: 14.73 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3297/1.821, allocations: 69.28 MB / 0.7168 GB, free: 95.63 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/1.821, allocations: 117 kB / 0.717 GB, free: 95.57 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.024e-06/1.821, allocations: 0.9688 kB / 0.717 GB, free: 95.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0006501/1.821, allocations: 268.3 kB / 0.7172 GB, free: 95.53 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/1.821, allocations: 57.78 kB / 0.7173 GB, free: 95.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/1.822, allocations: 387 kB / 0.7176 GB, free: 95.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/1.822, allocations: 26.95 kB / 0.7177 GB, free: 95.26 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/1.822, allocations: 302.5 kB / 0.7179 GB, free: 95.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/1.822, allocations: 72.59 kB / 0.718 GB, free: 95.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.217e-05/1.822, allocations: 87.58 kB / 0.7181 GB, free: 95.04 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.324e-05/1.822, allocations: 0.5151 MB / 0.7186 GB, free: 94.55 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.56e-05/1.822, allocations: 42.61 kB / 0.7186 GB, free: 94.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/1.822, allocations: 188.5 kB / 0.7188 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/1.822, allocations: 251.4 kB / 0.7191 GB, free: 94.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/1.822, allocations: 2.906 kB / 0.7191 GB, free: 94.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004775/1.823, allocations: 336.2 kB / 0.7194 GB, free: 94.12 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/1.823, allocations: 8.781 kB / 0.7194 GB, free: 94.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/1.823, allocations: 5.156 kB / 0.7194 GB, free: 94.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004792/1.823, allocations: 141.3 kB / 0.7195 GB, free: 94.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/1.824, allocations: 50.94 kB / 0.7196 GB, free: 94.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/1.825, allocations: 2.982 MB / 0.7225 GB, free: 91.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/1.825, allocations: 40.55 kB / 0.7225 GB, free: 91.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/1.825, allocations: 17.03 kB / 0.7226 GB, free: 91.32 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 9.486e-05/1.825, allocations: 184.9 kB / 0.7227 GB, free: 91.16 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/1.825, allocations: 44.61 kB / 0.7228 GB, free: 91.14 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/1.825, allocations: 266.1 kB / 0.723 GB, free: 91.07 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/1.825, allocations: 5.391 kB / 0.723 GB, free: 91.07 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/1.825, allocations: 2.016 kB / 0.723 GB, free: 91.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/1.825, allocations: 3.938 kB / 0.723 GB, free: 91.07 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/1.826, allocations: 290.3 kB / 0.7233 GB, free: 90.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.826, allocations: 0 / 0.7233 GB, free: 90.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/1.826, allocations: 46.11 kB / 0.7234 GB, free: 90.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/1.826, allocations: 62.84 kB / 0.7234 GB, free: 90.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/1.826, allocations: 8.484 kB / 0.7234 GB, free: 90.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001904/1.826, allocations: 0.8206 MB / 0.7242 GB, free: 90.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.826, allocations: 3.531 kB / 0.7242 GB, free: 90.11 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/1.827, allocations: 324 kB / 0.7245 GB, free: 89.99 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.631e-05/1.827, allocations: 60.08 kB / 0.7246 GB, free: 89.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/1.827, allocations: 4.953 kB / 0.7246 GB, free: 89.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.058e-05/1.827, allocations: 15.97 kB / 0.7246 GB, free: 89.97 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.149e-05/1.827, allocations: 29.47 kB / 0.7246 GB, free: 89.97 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/1.827, allocations: 9.781 kB / 0.7247 GB, free: 89.97 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001294/1.827, allocations: 247.2 kB / 0.7249 GB, free: 89.84 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.827, allocations: 0 / 0.7249 GB, free: 89.84 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002527/1.829, allocations: 1.493 MB / 0.7263 GB, free: 89.83 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.004052/1.834, allocations: 2.411 MB / 0.7287 GB, free: 89.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004607/1.834, allocations: 360.2 kB / 0.729 GB, free: 89.46 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/1.834, allocations: 4.312 kB / 0.7291 GB, free: 89.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/1.834, allocations: 92.69 kB / 0.7291 GB, free: 89.44 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/1.834, allocations: 88.41 kB / 0.7292 GB, free: 89.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/1.836, allocations: 0.7404 MB / 0.7299 GB, free: 89.01 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.032e-05/1.836, allocations: 115.8 kB / 0.7301 GB, free: 88.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001003/1.836, allocations: 47.75 kB / 0.7301 GB, free: 88.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/1.836, allocations: 36.64 kB / 0.7301 GB, free: 88.9 MB / 0.6198 GB Notification: Performance of SimCode: time 9.32e-07/1.836, allocations: 2.312 kB / 0.7301 GB, free: 88.9 MB / 0.6198 GB Notification: Performance of Templates: time 0.03839/1.874, allocations: 48.45 MB / 0.7775 GB, free: 70.83 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.341274952050298]