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.4918/0.4918, allocations: 111.6 MB / 132.2 MB, free: 4.414 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.744e-06/1.744e-06, allocations: 0 / 177.3 MB, free: 8.992 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.218e-05, allocations: 2.312 kB / 177.3 MB, free: 8.988 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.01/1.01, allocations: 257.3 MB / 434.5 MB, free: 16 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3192/1.329, allocations: 178.6 MB / 0.5987 GB, free: 3.215 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/1.329, allocations: 15.88 kB / 0.5988 GB, free: 3.199 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.0001975/1.33, allocations: 51.5 kB / 0.5988 GB, free: 3.148 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002957/1.33, allocations: 174.5 kB / 0.599 GB, free: 2.977 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.02057/1.35, allocations: 11.77 MB / 0.6105 GB, free: 7.172 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005018/1.351, allocations: 0.5024 MB / 0.611 GB, free: 6.664 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/1.351, allocations: 221.2 kB / 0.6112 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003441/1.352, allocations: 323.2 kB / 0.6115 GB, free: 6.129 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/1.352, allocations: 155.5 kB / 0.6116 GB, free: 5.977 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.816e-05/1.352, allocations: 40 kB / 0.6117 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02351/1.375, allocations: 18.66 MB / 0.6299 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/1.375, allocations: 115.6 kB / 0.63 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001704/1.376, allocations: 151.5 kB / 0.6302 GB, free: 2.992 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01824/1.394, allocations: 12.28 MB / 0.6421 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/1.394, allocations: 0 / 0.6421 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.513e-06/1.394, allocations: 0 / 0.6421 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.752e-06/1.394, allocations: 0 / 0.6421 GB, free: 6.68 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.003631/1.397, allocations: 2.018 MB / 0.6441 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/1.398, allocations: 15.98 kB / 0.6441 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/1.398, allocations: 99.66 kB / 0.6442 GB, free: 4.496 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/1.398, allocations: 311.6 kB / 0.6445 GB, free: 4.168 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.037e-05/1.398, allocations: 80.41 kB / 0.6446 GB, free: 4.078 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/1.398, allocations: 36 kB / 0.6446 GB, free: 4.043 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/1.398, allocations: 338.5 kB / 0.645 GB, free: 3.672 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/1.398, allocations: 0 / 0.645 GB, free: 3.672 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/1.398, allocations: 16 kB / 0.645 GB, free: 3.656 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/1.398, allocations: 15.94 kB / 0.645 GB, free: 3.641 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/1.399, allocations: 139.7 kB / 0.6451 GB, free: 3.508 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/1.4, allocations: 1.419 MB / 0.6465 GB, free: 2.031 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/1.4, allocations: 127 kB / 0.6466 GB, free: 1.895 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/1.4, allocations: 44.59 kB / 0.6467 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1027/1.503, allocations: 60.39 MB / 0.7056 GB, free: 5.395 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/1.503, allocations: 105 kB / 0.7057 GB, free: 5.277 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.204e-06/1.503, allocations: 0 / 0.7057 GB, free: 5.277 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0005217/1.503, allocations: 245.4 kB / 0.706 GB, free: 5.027 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.127e-05/1.503, allocations: 55.41 kB / 0.706 GB, free: 4.961 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/1.504, allocations: 382.4 kB / 0.7064 GB, free: 4.574 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/1.504, allocations: 29.7 kB / 0.7064 GB, free: 4.539 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/1.504, allocations: 299 kB / 0.7067 GB, free: 4.242 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/1.504, allocations: 79.34 kB / 0.7068 GB, free: 4.164 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/1.504, allocations: 87.55 kB / 0.7069 GB, free: 4.07 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001118/1.504, allocations: 0.5117 MB / 0.7074 GB, free: 3.547 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.323e-05/1.504, allocations: 37.36 kB / 0.7074 GB, free: 3.512 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/1.504, allocations: 184.5 kB / 0.7076 GB, free: 3.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001751/1.504, allocations: 234.3 kB / 0.7078 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/1.504, allocations: 4 kB / 0.7078 GB, free: 2.977 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003826/1.505, allocations: 312.5 kB / 0.7081 GB, free: 2.656 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/1.505, allocations: 8 kB / 0.7081 GB, free: 2.648 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/1.505, allocations: 4 kB / 0.7081 GB, free: 2.645 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004023/1.505, allocations: 120.5 kB / 0.7082 GB, free: 2.523 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/1.505, allocations: 55.8 kB / 0.7083 GB, free: 2.469 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.197/1.702, allocations: 2.911 MB / 0.7111 GB, free: 96.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/1.702, allocations: 36.61 kB / 0.7112 GB, free: 96.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/1.702, allocations: 15.11 kB / 0.7112 GB, free: 96.66 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.000131/1.703, allocations: 178.8 kB / 0.7113 GB, free: 96.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/1.703, allocations: 42.14 kB / 0.7114 GB, free: 96.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004419/1.703, allocations: 259 kB / 0.7116 GB, free: 96.44 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.703, allocations: 3.844 kB / 0.7116 GB, free: 96.44 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/1.703, allocations: 1.266 kB / 0.7116 GB, free: 96.44 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/1.703, allocations: 1.766 kB / 0.7116 GB, free: 96.44 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/1.703, allocations: 231.3 kB / 0.7119 GB, free: 96.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/1.703, allocations: 1.406 kB / 0.7119 GB, free: 96.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/1.704, allocations: 49.36 kB / 0.7119 GB, free: 96.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002232/1.704, allocations: 46.98 kB / 0.712 GB, free: 96.31 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/1.704, allocations: 7.984 kB / 0.712 GB, free: 96.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002051/1.704, allocations: 0.8227 MB / 0.7128 GB, free: 95.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/1.704, allocations: 0 / 0.7128 GB, free: 95.52 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003699/1.704, allocations: 291.5 kB / 0.713 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.287e-05/1.704, allocations: 60.36 kB / 0.7131 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/1.704, allocations: 5.797 kB / 0.7131 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.915e-05/1.705, allocations: 4.828 kB / 0.7131 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/1.705, allocations: 30.73 kB / 0.7131 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/1.705, allocations: 8.875 kB / 0.7131 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000127/1.705, allocations: 236.7 kB / 0.7134 GB, free: 95.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.1e-08/1.705, allocations: 1.062 kB / 0.7134 GB, free: 95.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002981/1.708, allocations: 1.49 MB / 0.7148 GB, free: 95.3 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.005109/1.713, allocations: 2.512 MB / 0.7173 GB, free: 95.18 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004373/1.713, allocations: 341.4 kB / 0.7176 GB, free: 95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.713, allocations: 0 / 0.7176 GB, free: 95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/1.713, allocations: 97.5 kB / 0.7177 GB, free: 94.98 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/1.714, allocations: 80.38 kB / 0.7178 GB, free: 94.98 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/1.715, allocations: 0.7371 MB / 0.7185 GB, free: 94.62 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.234e-05/1.715, allocations: 110.2 kB / 0.7186 GB, free: 94.54 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001282/1.715, allocations: 51.42 kB / 0.7187 GB, free: 94.53 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/1.715, allocations: 135.7 kB / 0.7188 GB, free: 94.46 MB / 0.6198 GB Notification: Performance of SimCode: time 8.11e-07/1.715, allocations: 2 kB / 0.7188 GB, free: 94.46 MB / 0.6198 GB Notification: Performance of Templates: time 0.04732/1.762, allocations: 56.48 MB / 0.7739 GB, free: 72.93 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.2299557332880795]