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.47/0.47, allocations: 111.6 MB / 131.7 MB, free: 5.07 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 2.204e-06/2.204e-06, allocations: 0 / 176.5 MB, free: 9.434 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/2.047e-05, allocations: 7.719 kB / 176.5 MB, free: 9.43 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.034/1.034, allocations: 257.3 MB / 433.8 MB, free: 128 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3336/1.367, allocations: 181.6 MB / 0.6009 GB, free: 0.7109 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/1.368, allocations: 11.88 kB / 0.601 GB, free: 0.6992 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.0002034/1.368, allocations: 59.44 kB / 0.601 GB, free: 0.6406 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0003008/1.368, allocations: 158.7 kB / 0.6012 GB, free: 496 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.01953/1.388, allocations: 11.77 MB / 0.6127 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004138/1.388, allocations: 0.4986 MB / 0.6131 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002181/1.388, allocations: 225.1 kB / 0.6134 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/1.388, allocations: 315.3 kB / 0.6137 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/1.389, allocations: 167.5 kB / 0.6138 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/1.389, allocations: 44 kB / 0.6139 GB, free: 3.441 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01954/1.408, allocations: 18.65 MB / 0.6321 GB, free: 0.7539 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001233/1.408, allocations: 111.6 kB / 0.6322 GB, free: 0.6445 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/1.408, allocations: 163.3 kB / 0.6323 GB, free: 500 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01369/1.422, allocations: 12.28 MB / 0.6443 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.422, allocations: 4 kB / 0.6443 GB, free: 4.176 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.663e-06/1.422, allocations: 0 / 0.6443 GB, free: 4.176 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.342e-06/1.422, allocations: 0 / 0.6443 GB, free: 4.176 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.003133/1.425, allocations: 2.022 MB / 0.6463 GB, free: 2.102 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/1.425, allocations: 11.98 kB / 0.6463 GB, free: 2.09 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/1.426, allocations: 96.36 kB / 0.6464 GB, free: 1.996 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/1.426, allocations: 315.6 kB / 0.6467 GB, free: 1.664 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.467e-05/1.426, allocations: 80.41 kB / 0.6468 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/1.426, allocations: 43.98 kB / 0.6468 GB, free: 1.531 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/1.426, allocations: 354.5 kB / 0.6472 GB, free: 1.145 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/1.426, allocations: 0 / 0.6472 GB, free: 1.145 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/1.426, allocations: 16 kB / 0.6472 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/1.426, allocations: 15.94 kB / 0.6472 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/1.427, allocations: 175.7 kB / 0.6474 GB, free: 0.9453 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/1.428, allocations: 1.485 MB / 0.6488 GB, free: 15.4 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/1.428, allocations: 159 kB / 0.649 GB, free: 15.23 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.394e-05/1.428, allocations: 52.59 kB / 0.649 GB, free: 15.18 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2473/1.675, allocations: 69.29 MB / 0.7167 GB, free: 296.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/1.676, allocations: 114.8 kB / 0.7168 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.074e-06/1.676, allocations: 0 / 0.7168 GB, free: 296.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0005942/1.676, allocations: 264.6 kB / 0.717 GB, free: 296.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/1.676, allocations: 56.16 kB / 0.7171 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/1.677, allocations: 388 kB / 0.7175 GB, free: 296.3 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/1.677, allocations: 34.06 kB / 0.7175 GB, free: 296.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/1.677, allocations: 297.8 kB / 0.7178 GB, free: 296 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.484e-05/1.677, allocations: 77.55 kB / 0.7179 GB, free: 295.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.359e-05/1.677, allocations: 88.66 kB / 0.7179 GB, free: 295.9 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.381e-05/1.677, allocations: 0.5086 MB / 0.7184 GB, free: 295.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.807e-05/1.677, allocations: 47.09 kB / 0.7185 GB, free: 295.4 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/1.677, allocations: 192.4 kB / 0.7187 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/1.677, allocations: 258.8 kB / 0.7189 GB, free: 294.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.677, allocations: 0 / 0.7189 GB, free: 294.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003972/1.678, allocations: 332.4 kB / 0.7192 GB, free: 294.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/1.678, allocations: 7.906 kB / 0.7192 GB, free: 294.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.678, allocations: 4.75 kB / 0.7192 GB, free: 294.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004715/1.678, allocations: 132.9 kB / 0.7194 GB, free: 294.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/1.678, allocations: 55.88 kB / 0.7194 GB, free: 294.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/1.679, allocations: 2.979 MB / 0.7223 GB, free: 291.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/1.679, allocations: 41.11 kB / 0.7224 GB, free: 291.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/1.679, allocations: 15.94 kB / 0.7224 GB, free: 291.6 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.0001024/1.68, allocations: 190.2 kB / 0.7226 GB, free: 291.4 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/1.68, allocations: 46.73 kB / 0.7226 GB, free: 291.3 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003395/1.68, allocations: 272.3 kB / 0.7229 GB, free: 291 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/1.68, allocations: 7.922 kB / 0.7229 GB, free: 291 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/1.68, allocations: 0 / 0.7229 GB, free: 291 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/1.68, allocations: 4.516 kB / 0.7229 GB, free: 291 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/1.68, allocations: 281.7 kB / 0.7232 GB, free: 290.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/1.68, allocations: 0 / 0.7232 GB, free: 290.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/1.68, allocations: 39.98 kB / 0.7232 GB, free: 290.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/1.68, allocations: 64.23 kB / 0.7233 GB, free: 290.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/1.68, allocations: 4 kB / 0.7233 GB, free: 290.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001713/1.681, allocations: 0.8233 MB / 0.7241 GB, free: 289.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/1.681, allocations: 1.359 kB / 0.7241 GB, free: 289.8 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003288/1.681, allocations: 319 kB / 0.7244 GB, free: 289.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.093e-05/1.681, allocations: 64.5 kB / 0.7244 GB, free: 289.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/1.681, allocations: 4 kB / 0.7244 GB, free: 289.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.76e-05/1.681, allocations: 11.98 kB / 0.7244 GB, free: 289.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.188e-05/1.681, allocations: 31.7 kB / 0.7245 GB, free: 289.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/1.681, allocations: 8 kB / 0.7245 GB, free: 289.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001117/1.681, allocations: 255.1 kB / 0.7247 GB, free: 289.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.681, allocations: 0 / 0.7247 GB, free: 289.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002214/1.684, allocations: 1.494 MB / 0.7262 GB, free: 287.8 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.003432/1.687, allocations: 2.411 MB / 0.7285 GB, free: 285.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003855/1.687, allocations: 359.3 kB / 0.7289 GB, free: 285.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/1.687, allocations: 0 / 0.7289 GB, free: 285.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/1.687, allocations: 96.38 kB / 0.729 GB, free: 285.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/1.688, allocations: 83.28 kB / 0.7291 GB, free: 285.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/1.689, allocations: 0.7469 MB / 0.7298 GB, free: 284.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.918e-05/1.689, allocations: 115.7 kB / 0.7299 GB, free: 284.4 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.434e-05/1.689, allocations: 51.66 kB / 0.7299 GB, free: 284.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.692e-05/1.689, allocations: 28.5 kB / 0.73 GB, free: 284.3 MB / 0.6198 GB Notification: Performance of SimCode: time 1.112e-06/1.689, allocations: 4 kB / 0.73 GB, free: 284.3 MB / 0.6198 GB Notification: Performance of Templates: time 0.03309/1.722, allocations: 48.45 MB / 0.7773 GB, free: 236.1 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: 8.994782858993858]