Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.8481/0.8481, allocations: 120.4 MB / 140.1 MB, free: 36 kB / 126.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005423/0.0005423, allocations: 24.2 kB / 217.7 MB, free: 13.57 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0571/0.05765, allocations: 33.36 MB / 251 MB, free: 13.38 MB / 238.1 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.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.844/1.901, allocations: 254 MB / 0.4932 GB, free: 15 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04456/1.946, allocations: 30.57 MB / 0.5231 GB, free: 6.266 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002534/1.946, allocations: 0 / 0.5231 GB, free: 6.266 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/CheckValve.mo:38:3-39:49:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/CheckValve.mo:40:3-41:47:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004402/1.947, allocations: 112.1 kB / 0.5232 GB, free: 6.16 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/1.947, allocations: 115.2 kB / 0.5233 GB, free: 6.047 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783: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:850:9-850: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:1088:9-1088: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:69:3-69: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:69:3-69: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:167:3-170:49: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:167:3-170:49: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. Notification: Performance of NFTyping.typeClassSections: time 0.02796/1.975, allocations: 9.71 MB / 0.5328 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006652/1.975, allocations: 374.2 kB / 0.5331 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/1.976, allocations: 113.5 kB / 0.5332 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003277/1.976, allocations: 163.8 kB / 0.5334 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/1.976, allocations: 108.1 kB / 0.5335 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/1.976, allocations: 20 kB / 0.5335 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03303/2.009, allocations: 16.76 MB / 0.5499 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/2.009, allocations: 52.41 kB / 0.5499 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002093/2.009, allocations: 116.4 kB / 0.55 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01968/2.029, allocations: 8.47 MB / 0.5583 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/2.029, allocations: 0 / 0.5583 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/2.029, allocations: 2.188 kB / 0.5583 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.587e-05/2.029, allocations: 3.984 kB / 0.5583 GB, free: 2.195 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004115/2.033, allocations: 1.443 MB / 0.5597 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/2.033, allocations: 10.38 kB / 0.5597 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/2.033, allocations: 35.77 kB / 0.5598 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/2.034, allocations: 180.8 kB / 0.5599 GB, free: 480 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.531e-05/2.034, allocations: 46.14 kB / 0.56 GB, free: 428 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/2.034, allocations: 16 kB / 0.56 GB, free: 412 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/2.034, allocations: 330.9 kB / 0.5603 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/2.034, allocations: 1.75 kB / 0.5603 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/2.034, allocations: 12 kB / 0.5603 GB, free: 44 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/2.034, allocations: 13.8 kB / 0.5603 GB, free: 32 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/2.035, allocations: 193.3 kB / 0.5605 GB, free: 15.84 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/2.056, allocations: 5.96 MB / 0.5663 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/2.056, allocations: 134.8 kB / 0.5665 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/2.057, allocations: 89.16 kB / 0.5665 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1836/2.24, allocations: 48.44 MB / 0.6138 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/2.241, allocations: 193 kB / 0.614 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=43): time 3.517e-06/2.241, allocations: 6.25 kB / 0.614 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43): time 0.001157/2.242, allocations: 449 kB / 0.6145 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/2.242, allocations: 85.11 kB / 0.6145 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/2.242, allocations: 168 kB / 0.6147 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/2.242, allocations: 29.7 kB / 0.6147 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/2.242, allocations: 152.6 kB / 0.6149 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/2.242, allocations: 138.8 kB / 0.615 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.302e-05/2.242, allocations: 61.64 kB / 0.6151 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001725/2.243, allocations: 338.8 kB / 0.6154 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/2.243, allocations: 96.45 kB / 0.6155 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/2.243, allocations: 161.8 kB / 0.6156 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/2.244, allocations: 0.527 MB / 0.6162 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.244, allocations: 4 kB / 0.6162 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000749/2.245, allocations: 362.3 kB / 0.6165 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/2.245, allocations: 4 kB / 0.6165 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/2.245, allocations: 4 kB / 0.6165 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006852/2.246, allocations: 130 kB / 0.6166 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/2.246, allocations: 23.92 kB / 0.6167 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006015/2.247, allocations: 0.6031 MB / 0.6173 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/2.247, allocations: 27.81 kB / 0.6173 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/2.247, allocations: 23.86 kB / 0.6173 GB, free: 5.422 MB / 0.5606 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001955/2.247, allocations: 142.8 kB / 0.6174 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/2.247, allocations: 19.86 kB / 0.6175 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008419/2.248, allocations: 0.5012 MB / 0.6179 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005522/2.249, allocations: 322.2 kB / 0.6183 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/2.249, allocations: 0 / 0.6183 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/2.249, allocations: 9.828 kB / 0.6183 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/2.25, allocations: 0.7599 MB / 0.619 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/2.25, allocations: 0 / 0.619 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/2.25, allocations: 27.92 kB / 0.619 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006272/2.251, allocations: 133.8 kB / 0.6192 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/2.251, allocations: 8 kB / 0.6192 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005352/2.251, allocations: 0.6303 MB / 0.6198 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/2.251, allocations: 3.938 kB / 0.6198 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007126/2.252, allocations: 436 kB / 0.6202 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.001e-05/2.252, allocations: 43.72 kB / 0.6202 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.88e-05/2.252, allocations: 7.938 kB / 0.6202 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/2.252, allocations: 20.05 kB / 0.6203 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/2.252, allocations: 19.97 kB / 0.6203 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/2.252, allocations: 11.98 kB / 0.6203 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001806/2.252, allocations: 166.8 kB / 0.6205 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.252, allocations: 0 / 0.6205 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003276/2.256, allocations: 1.22 MB / 0.6216 GB, free: 0.8203 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0057/2.261, allocations: 1.747 MB / 0.6234 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008932/2.262, allocations: 298.2 kB / 0.6236 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/2.262, allocations: 448 / 0.6236 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003987/2.263, allocations: 150.9 kB / 0.6238 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007652/2.263, allocations: 111.9 kB / 0.6239 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/2.265, allocations: 0.5804 MB / 0.6245 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/2.265, allocations: 173.3 kB / 0.6246 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.983e-05/2.265, allocations: 23.28 kB / 0.6246 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/2.265, allocations: 24.5 kB / 0.6247 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.8e-07/2.265, allocations: 0 / 0.6247 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06842/2.333, allocations: 42.27 MB / 0.6659 GB, free: 3.68 MB / 0.6075 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.424022661987692] Failed to read output from testmodel.py, exit status != 0: 2.6920257339952514 2.701730571 0.670106069 Calling exit ...