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.9071/0.9071, allocations: 153.8 MB / 173.4 MB, free: 4.934 MB / 142.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.0005687/0.0005687, allocations: 11.97 kB / 251.1 MB, free: 3.988 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1834, allocations: 33.36 MB / 284.4 MB, free: 2.133 MB / 222.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.954/2.138, allocations: 307.5 MB / 0.578 GB, free: 15.93 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0391/2.177, allocations: 34.76 MB / 0.612 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004393/2.177, allocations: 3.031 kB / 0.612 GB, free: 14.3 MB / 494.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.0006147/2.178, allocations: 131.2 kB / 0.6121 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005133/2.178, allocations: 121.5 kB / 0.6122 GB, free: 14.15 MB / 494.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.03409/2.213, allocations: 9.841 MB / 0.6218 GB, free: 8.617 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008332/2.213, allocations: 372.9 kB / 0.6222 GB, free: 8.258 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/2.214, allocations: 106.3 kB / 0.6223 GB, free: 8.156 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/2.214, allocations: 171.3 kB / 0.6224 GB, free: 7.988 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/2.214, allocations: 115.4 kB / 0.6225 GB, free: 7.875 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/2.214, allocations: 20 kB / 0.6226 GB, free: 7.855 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04379/2.258, allocations: 17.93 MB / 0.6401 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/2.258, allocations: 48.53 kB / 0.6401 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002712/2.259, allocations: 147.2 kB / 0.6403 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02634/2.285, allocations: 8.458 MB / 0.6485 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/2.285, allocations: 0 / 0.6485 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.114e-06/2.285, allocations: 0 / 0.6485 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.923e-05/2.285, allocations: 3.938 kB / 0.6485 GB, free: 13.24 MB / 0.5137 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.005588/2.291, allocations: 1.462 MB / 0.6499 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/2.291, allocations: 16.72 kB / 0.65 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/2.291, allocations: 31.77 kB / 0.65 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/2.291, allocations: 176.8 kB / 0.6502 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.071e-05/2.291, allocations: 50.08 kB / 0.6502 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/2.291, allocations: 20 kB / 0.6502 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/2.292, allocations: 322.5 kB / 0.6505 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/2.292, allocations: 3.938 kB / 0.6505 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/2.292, allocations: 13.12 kB / 0.6505 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/2.292, allocations: 10.25 kB / 0.6506 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/2.292, allocations: 200.5 kB / 0.6507 GB, free: 10.86 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.01993/2.312, allocations: 6.491 MB / 0.6571 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/2.313, allocations: 142.8 kB / 0.6572 GB, free: 4.039 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/2.313, allocations: 97.14 kB / 0.6573 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1694/2.482, allocations: 48.23 MB / 0.7044 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006101/2.483, allocations: 206.7 kB / 0.7046 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=43): time 4.158e-06/2.483, allocations: 0 / 0.7046 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43): time 0.001525/2.484, allocations: 440.1 kB / 0.705 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.846e-05/2.484, allocations: 85.14 kB / 0.7051 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/2.485, allocations: 203 kB / 0.7053 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/2.485, allocations: 29.7 kB / 0.7053 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/2.485, allocations: 152.8 kB / 0.7055 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/2.485, allocations: 138.8 kB / 0.7056 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/2.485, allocations: 57.69 kB / 0.7057 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002413/2.485, allocations: 334.8 kB / 0.706 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/2.486, allocations: 105.3 kB / 0.7061 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/2.486, allocations: 165.4 kB / 0.7062 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/2.488, allocations: 0.5345 MB / 0.7068 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/2.488, allocations: 0 / 0.7068 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008593/2.488, allocations: 371.1 kB / 0.7071 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/2.488, allocations: 4 kB / 0.7071 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/2.488, allocations: 5.719 kB / 0.7071 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006678/2.489, allocations: 116.7 kB / 0.7072 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/2.489, allocations: 28.02 kB / 0.7073 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006807/2.49, allocations: 0.6085 MB / 0.7079 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/2.49, allocations: 40.41 kB / 0.7079 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/2.49, allocations: 12 kB / 0.7079 GB, free: 15.92 MB / 0.5762 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.0002581/2.49, allocations: 145.4 kB / 0.708 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.922e-05/2.49, allocations: 19.86 kB / 0.7081 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008589/2.491, allocations: 0.496 MB / 0.7086 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005618/2.492, allocations: 335.3 kB / 0.7089 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/2.492, allocations: 0 / 0.7089 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/2.492, allocations: 5.031 kB / 0.7089 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/2.493, allocations: 0.8412 MB / 0.7097 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/2.493, allocations: 4 kB / 0.7097 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/2.494, allocations: 23.98 kB / 0.7097 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006103/2.494, allocations: 130.3 kB / 0.7098 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/2.494, allocations: 7.984 kB / 0.7099 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005723/2.495, allocations: 0.6265 MB / 0.7105 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/2.495, allocations: 0 / 0.7105 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007239/2.495, allocations: 452.9 kB / 0.7109 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/2.496, allocations: 43.7 kB / 0.7109 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/2.496, allocations: 15.89 kB / 0.711 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/2.496, allocations: 9.016 kB / 0.711 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/2.496, allocations: 19.97 kB / 0.711 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/2.496, allocations: 15.98 kB / 0.711 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002076/2.496, allocations: 184.5 kB / 0.7112 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.496, allocations: 0 / 0.7112 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003884/2.5, allocations: 1.216 MB / 0.7124 GB, free: 11.21 MB / 0.5762 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.007142/2.507, allocations: 1.742 MB / 0.7141 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009991/2.508, allocations: 305.3 kB / 0.7144 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/2.508, allocations: 0 / 0.7144 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004199/2.509, allocations: 136.3 kB / 0.7145 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008687/2.509, allocations: 125.5 kB / 0.7146 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/2.511, allocations: 0.6209 MB / 0.7152 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/2.511, allocations: 0.7797 MB / 0.716 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.698e-05/2.511, allocations: 23.44 kB / 0.716 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of SimCode: time 1.443e-06/2.511, allocations: 0 / 0.716 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of Templates: time 0.04458/2.556, allocations: 25.28 MB / 0.7407 GB, free: 14.61 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.698513123206794] Failed to read output from testmodel.py, exit status != 0: 2.7597254579886794 3.062388197 0.77462508 Calling exit ...