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.4865/0.4865, allocations: 111.6 MB / 131.2 MB, free: 4.523 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.533e-06/1.533e-06, allocations: 0 / 176.2 MB, free: 8.93 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.591e-05, allocations: 6.031 kB / 176.2 MB, free: 8.926 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.039/1.039, allocations: 257.3 MB / 433.4 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.358/1.397, allocations: 182 MB / 0.601 GB, free: 368 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/1.397, allocations: 15.88 kB / 0.601 GB, free: 352 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.0001848/1.397, allocations: 59.44 kB / 0.601 GB, free: 292 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002934/1.397, allocations: 166.6 kB / 0.6012 GB, free: 124 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.02075/1.418, allocations: 11.78 MB / 0.6127 GB, free: 4.316 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004856/1.419, allocations: 0.5064 MB / 0.6132 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/1.419, allocations: 217.2 kB / 0.6134 GB, free: 3.59 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/1.419, allocations: 315.3 kB / 0.6137 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/1.419, allocations: 163.5 kB / 0.6139 GB, free: 3.121 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.506e-05/1.419, allocations: 40 kB / 0.6139 GB, free: 3.082 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02477/1.444, allocations: 18.66 MB / 0.6321 GB, free: 404 kB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001953/1.444, allocations: 107.6 kB / 0.6322 GB, free: 296 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0002239/1.445, allocations: 160.1 kB / 0.6324 GB, free: 136 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02015/1.465, allocations: 12.29 MB / 0.6444 GB, free: 3.805 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/1.465, allocations: 0 / 0.6444 GB, free: 3.805 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.683e-06/1.465, allocations: 0 / 0.6444 GB, free: 3.805 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.022e-06/1.465, allocations: 0 / 0.6444 GB, free: 3.805 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.00327/1.468, allocations: 2.019 MB / 0.6464 GB, free: 1.734 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/1.468, allocations: 11.98 kB / 0.6464 GB, free: 1.723 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/1.468, allocations: 104.4 kB / 0.6465 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/1.469, allocations: 311.6 kB / 0.6468 GB, free: 1.293 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.937e-05/1.469, allocations: 80.41 kB / 0.6468 GB, free: 1.203 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/1.469, allocations: 36 kB / 0.6469 GB, free: 1.168 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/1.469, allocations: 366.5 kB / 0.6472 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/1.469, allocations: 0 / 0.6472 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/1.469, allocations: 16 kB / 0.6472 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/1.469, allocations: 11.94 kB / 0.6472 GB, free: 0.7422 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/1.469, allocations: 171.7 kB / 0.6474 GB, free: 0.5781 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/1.47, allocations: 1.485 MB / 0.6489 GB, free: 15.03 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/1.471, allocations: 171 kB / 0.649 GB, free: 14.85 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.217e-05/1.471, allocations: 52.28 kB / 0.6491 GB, free: 14.8 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3419/1.813, allocations: 69.29 MB / 0.7167 GB, free: 95.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/1.813, allocations: 113.5 kB / 0.7168 GB, free: 95.75 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.865e-06/1.813, allocations: 0 / 0.7168 GB, free: 95.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0006974/1.814, allocations: 265 kB / 0.7171 GB, free: 95.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/1.814, allocations: 59.5 kB / 0.7172 GB, free: 95.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/1.814, allocations: 390.1 kB / 0.7175 GB, free: 95.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/1.814, allocations: 30.27 kB / 0.7176 GB, free: 95.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000129/1.814, allocations: 298.7 kB / 0.7178 GB, free: 95.29 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/1.814, allocations: 78.09 kB / 0.7179 GB, free: 95.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.669e-05/1.814, allocations: 91.27 kB / 0.718 GB, free: 95.22 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.421e-05/1.814, allocations: 0.5085 MB / 0.7185 GB, free: 94.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.616e-05/1.814, allocations: 42.88 kB / 0.7185 GB, free: 94.73 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/1.815, allocations: 189.8 kB / 0.7187 GB, free: 94.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/1.815, allocations: 254.6 kB / 0.719 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/1.815, allocations: 1.906 kB / 0.719 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004985/1.815, allocations: 331.4 kB / 0.7193 GB, free: 94.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.815, allocations: 7.875 kB / 0.7193 GB, free: 94.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/1.815, allocations: 4.188 kB / 0.7193 GB, free: 94.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/1.816, allocations: 142.6 kB / 0.7194 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/1.816, allocations: 52.25 kB / 0.7195 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/1.817, allocations: 2.985 MB / 0.7224 GB, free: 91.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/1.818, allocations: 40.06 kB / 0.7224 GB, free: 91.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/1.818, allocations: 15.88 kB / 0.7224 GB, free: 91.5 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.0001043/1.818, allocations: 181.2 kB / 0.7226 GB, free: 91.34 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/1.818, allocations: 44.52 kB / 0.7227 GB, free: 91.32 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003971/1.818, allocations: 266.5 kB / 0.7229 GB, free: 91.25 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/1.818, allocations: 2.875 kB / 0.7229 GB, free: 91.25 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/1.818, allocations: 0 / 0.7229 GB, free: 91.25 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.818, allocations: 6.375 kB / 0.7229 GB, free: 91.25 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/1.818, allocations: 289.6 kB / 0.7232 GB, free: 91.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/1.818, allocations: 0 / 0.7232 GB, free: 91.11 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/1.818, allocations: 44.52 kB / 0.7232 GB, free: 91.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/1.819, allocations: 63.98 kB / 0.7233 GB, free: 91.09 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/1.819, allocations: 7.156 kB / 0.7233 GB, free: 91.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002179/1.819, allocations: 0.8264 MB / 0.7241 GB, free: 90.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.819, allocations: 0 / 0.7241 GB, free: 90.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/1.819, allocations: 319.2 kB / 0.7244 GB, free: 90.17 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/1.819, allocations: 61.3 kB / 0.7245 GB, free: 90.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/1.819, allocations: 8.062 kB / 0.7245 GB, free: 90.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.089e-05/1.819, allocations: 16.06 kB / 0.7245 GB, free: 90.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/1.82, allocations: 26.52 kB / 0.7245 GB, free: 90.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/1.82, allocations: 9.531 kB / 0.7245 GB, free: 90.15 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001319/1.82, allocations: 249.6 kB / 0.7248 GB, free: 90.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9e-08/1.82, allocations: 1.062 kB / 0.7248 GB, free: 90.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002863/1.823, allocations: 1.498 MB / 0.7262 GB, free: 90.01 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.004288/1.827, allocations: 2.407 MB / 0.7286 GB, free: 89.83 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004987/1.827, allocations: 362.4 kB / 0.7289 GB, free: 89.64 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.827, allocations: 0 / 0.7289 GB, free: 89.64 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/1.827, allocations: 93.12 kB / 0.729 GB, free: 89.63 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/1.828, allocations: 92.84 kB / 0.7291 GB, free: 89.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/1.829, allocations: 0.7427 MB / 0.7298 GB, free: 89.2 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.442e-05/1.829, allocations: 117.4 kB / 0.73 GB, free: 89.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.866e-05/1.829, allocations: 44.86 kB / 0.73 GB, free: 89.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.667e-05/1.829, allocations: 35.56 kB / 0.73 GB, free: 89.09 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/1.829, allocations: 4 kB / 0.73 GB, free: 89.09 MB / 0.6198 GB Notification: Performance of Templates: time 0.03975/1.869, allocations: 48.45 MB / 0.7774 GB, free: 71.02 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: 9.469998291693628]