Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7779/0.7779, allocations: 152.6 MB / 169.6 MB, free: 14.94 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004631/0.0004631, allocations: 14.14 kB / 245.6 MB, free: 15.63 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04984/0.05031, allocations: 33.07 MB / 278.6 MB, free: 0.6758 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.531/1.581, allocations: 301.3 MB / 0.5663 GB, free: 2.395 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04055/1.622, allocations: 34.99 MB / 0.6005 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/1.622, allocations: 0 / 0.6005 GB, free: 15.26 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004382/1.622, allocations: 163.2 kB / 0.6007 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000313/1.623, allocations: 146.9 kB / 0.6008 GB, free: 14.96 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02256/1.645, allocations: 9.913 MB / 0.6105 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006331/1.646, allocations: 458.6 kB / 0.6109 GB, free: 4.574 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/1.646, allocations: 132.6 kB / 0.611 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/1.646, allocations: 191.2 kB / 0.6112 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/1.646, allocations: 167.2 kB / 0.6114 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.588e-05/1.646, allocations: 24 kB / 0.6114 GB, free: 4.074 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02949/1.676, allocations: 17.9 MB / 0.6289 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001463/1.676, allocations: 71.75 kB / 0.629 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000237/1.676, allocations: 179 kB / 0.6291 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01649/1.693, allocations: 8.516 MB / 0.6374 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/1.693, allocations: 0 / 0.6374 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.472e-06/1.693, allocations: 0 / 0.6374 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.083e-06/1.693, allocations: 4 kB / 0.6375 GB, free: 9.363 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003646/1.697, allocations: 1.599 MB / 0.639 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/1.697, allocations: 11.89 kB / 0.639 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.102e-05/1.697, allocations: 47.66 kB / 0.6391 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/1.697, allocations: 266.4 kB / 0.6393 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/1.697, allocations: 50.27 kB / 0.6394 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/1.697, allocations: 20 kB / 0.6394 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/1.698, allocations: 358.7 kB / 0.6397 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/1.698, allocations: 0 / 0.6397 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/1.698, allocations: 15.94 kB / 0.6397 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/1.698, allocations: 23.92 kB / 0.6398 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/1.698, allocations: 225.7 kB / 0.64 GB, free: 6.637 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.02008/1.718, allocations: 10.04 MB / 0.6498 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/1.719, allocations: 243 kB / 0.65 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/1.719, allocations: 122.9 kB / 0.6501 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3211/2.04, allocations: 85.98 MB / 0.7341 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/2.04, allocations: 216.4 kB / 0.7343 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/2.04, allocations: 1.344 kB / 0.7343 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001053/2.041, allocations: 0.5741 MB / 0.7349 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/2.041, allocations: 79.64 kB / 0.7349 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/2.042, allocations: 253.6 kB / 0.7352 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/2.042, allocations: 28.89 kB / 0.7352 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/2.042, allocations: 169.8 kB / 0.7354 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.264e-05/2.042, allocations: 157.9 kB / 0.7355 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.082e-05/2.042, allocations: 73.16 kB / 0.7356 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.979e-05/2.042, allocations: 341.5 kB / 0.7359 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/2.042, allocations: 115 kB / 0.736 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/2.042, allocations: 164.4 kB / 0.7362 GB, free: 209 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/2.043, allocations: 281.1 kB / 0.7365 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/2.043, allocations: 0.5625 kB / 0.7365 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006832/2.043, allocations: 434.5 kB / 0.7369 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/2.043, allocations: 9.25 kB / 0.7369 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/2.043, allocations: 4.125 kB / 0.7369 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008835/2.044, allocations: 191.7 kB / 0.7371 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/2.044, allocations: 27.36 kB / 0.7371 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/2.046, allocations: 2.425 MB / 0.7395 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/2.046, allocations: 50.77 kB / 0.7395 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/2.046, allocations: 11.2 kB / 0.7395 GB, free: 206.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001104/2.046, allocations: 147.4 kB / 0.7397 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/2.046, allocations: 36.45 kB / 0.7397 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006216/2.047, allocations: 0.5483 MB / 0.7402 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00043/2.047, allocations: 356.5 kB / 0.7406 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/2.047, allocations: 2.906 kB / 0.7406 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/2.047, allocations: 0 / 0.7406 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009954/2.048, allocations: 0.9824 MB / 0.7415 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/2.048, allocations: 0 / 0.7415 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/2.049, allocations: 63.72 kB / 0.7416 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002929/2.049, allocations: 99.84 kB / 0.7417 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/2.049, allocations: 3.625 kB / 0.7417 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003183/2.049, allocations: 0.6396 MB / 0.7423 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/2.049, allocations: 7.906 kB / 0.7423 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007456/2.05, allocations: 0.6476 MB / 0.743 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-05/2.05, allocations: 133.5 kB / 0.7431 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/2.05, allocations: 13.66 kB / 0.7431 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/2.05, allocations: 19.48 kB / 0.7431 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/2.05, allocations: 35.2 kB / 0.7432 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/2.05, allocations: 7.875 kB / 0.7432 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001457/2.051, allocations: 217.9 kB / 0.7434 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/2.051, allocations: 1.875 kB / 0.7434 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002212/2.053, allocations: 1.223 MB / 0.7446 GB, free: 204.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.003543/2.056, allocations: 1.753 MB / 0.7463 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007223/2.057, allocations: 473.5 kB / 0.7467 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/2.057, allocations: 1.031 kB / 0.7467 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003437/2.057, allocations: 164.4 kB / 0.7469 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/2.058, allocations: 132.2 kB / 0.747 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/2.059, allocations: 0.9189 MB / 0.7479 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/2.059, allocations: 0.8105 MB / 0.7487 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/2.059, allocations: 35.02 kB / 0.7487 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of SimCode: time 2.8e-07/2.059, allocations: 0 / 0.7487 GB, free: 202.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.02431/2.084, allocations: 26.9 MB / 0.775 GB, free: 177.8 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.999416503822431] Failed to read output from testmodel.py, exit status != 0: 2.1938572318758816 2.2016939779999998 0.5069229989999999 Calling exit ...