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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7506/0.7506, allocations: 152.6 MB / 170.7 MB, free: 6.293 MB / 142.1 MB [Timeout remaining time 89] 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=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004501, allocations: 15.97 kB / 247.2 MB, free: 6.434 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1307, allocations: 33.04 MB / 280.3 MB, free: 3.66 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.399/1.529, allocations: 301.2 MB / 0.5678 GB, free: 5.902 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2339/1.763, allocations: 34.97 MB / 0.602 GB, free: 5.906 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/1.764, allocations: 3.562 kB / 0.602 GB, free: 5.906 MB / 478.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.0003786/1.764, allocations: 150.4 kB / 0.6021 GB, free: 5.836 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/1.764, allocations: 153.6 kB / 0.6023 GB, free: 5.734 MB / 478.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.02276/1.787, allocations: 9.984 MB / 0.612 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005145/1.787, allocations: 450 kB / 0.6124 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/1.788, allocations: 130.7 kB / 0.6126 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/1.788, allocations: 191.1 kB / 0.6127 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/1.788, allocations: 168.8 kB / 0.6129 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/1.788, allocations: 25.47 kB / 0.6129 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03221/1.82, allocations: 17.92 MB / 0.6304 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/1.82, allocations: 67.7 kB / 0.6305 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002793/1.821, allocations: 171.1 kB / 0.6306 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02072/1.841, allocations: 8.513 MB / 0.639 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/1.841, allocations: 3.938 kB / 0.639 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/1.841, allocations: 0 / 0.639 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.708e-05/1.841, allocations: 3.594 kB / 0.639 GB, free: 8.242 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004368/1.846, allocations: 1.6 MB / 0.6405 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/1.846, allocations: 12.03 kB / 0.6405 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/1.846, allocations: 40.47 kB / 0.6406 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/1.846, allocations: 268.6 kB / 0.6408 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/1.846, allocations: 50.2 kB / 0.6409 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/1.846, allocations: 28.55 kB / 0.6409 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005671/1.847, allocations: 349.4 kB / 0.6412 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/1.847, allocations: 3.984 kB / 0.6412 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/1.847, allocations: 12.62 kB / 0.6413 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/1.847, allocations: 8.844 kB / 0.6413 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004068/1.847, allocations: 227.7 kB / 0.6415 GB, free: 5.543 MB / 0.4981 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.02003/1.867, allocations: 10.04 MB / 0.6513 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006572/1.868, allocations: 239 kB / 0.6515 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/1.868, allocations: 123.8 kB / 0.6516 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1694/2.038, allocations: 85.99 MB / 0.7356 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000422/2.038, allocations: 227.9 kB / 0.7358 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/2.038, allocations: 0 / 0.7358 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.001227/2.039, allocations: 0.5621 MB / 0.7364 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/2.039, allocations: 81.11 kB / 0.7365 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/2.04, allocations: 254.6 kB / 0.7367 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/2.04, allocations: 33.7 kB / 0.7367 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/2.04, allocations: 165.1 kB / 0.7369 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/2.04, allocations: 158.5 kB / 0.737 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/2.04, allocations: 73.86 kB / 0.7371 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001443/2.04, allocations: 350.7 kB / 0.7375 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/2.04, allocations: 108.8 kB / 0.7376 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/2.041, allocations: 160.1 kB / 0.7377 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/2.041, allocations: 291 kB / 0.738 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/2.041, allocations: 4 kB / 0.738 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008271/2.042, allocations: 430.8 kB / 0.7384 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/2.042, allocations: 4 kB / 0.7384 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/2.042, allocations: 0.8438 kB / 0.7384 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009813/2.043, allocations: 193.7 kB / 0.7386 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/2.043, allocations: 31.86 kB / 0.7386 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/2.046, allocations: 2.432 MB / 0.741 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/2.046, allocations: 47.69 kB / 0.741 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/2.046, allocations: 9.297 kB / 0.741 GB, free: 4.668 MB / 0.6075 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.000164/2.046, allocations: 153.8 kB / 0.7412 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/2.046, allocations: 35.7 kB / 0.7412 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008265/2.047, allocations: 0.5433 MB / 0.7418 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000556/2.047, allocations: 354.2 kB / 0.7421 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/2.047, allocations: 7.984 kB / 0.7421 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/2.047, allocations: 1.312 kB / 0.7421 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/2.049, allocations: 0.9721 MB / 0.7431 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/2.049, allocations: 4 kB / 0.7431 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/2.049, allocations: 55.97 kB / 0.7431 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003411/2.049, allocations: 110 kB / 0.7432 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/2.049, allocations: 7.984 kB / 0.7432 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005488/2.05, allocations: 0.6407 MB / 0.7439 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.05, allocations: 0 / 0.7439 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/2.051, allocations: 0.6475 MB / 0.7445 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/2.051, allocations: 132.8 kB / 0.7446 GB, free: 0.8398 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/2.051, allocations: 12.08 kB / 0.7446 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/2.051, allocations: 19.97 kB / 0.7446 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/2.051, allocations: 35.95 kB / 0.7447 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/2.051, allocations: 8 kB / 0.7447 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002192/2.052, allocations: 218.9 kB / 0.7449 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/2.052, allocations: 4 kB / 0.7449 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002913/2.055, allocations: 1.224 MB / 0.7461 GB, free: 15.32 MB / 0.6231 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.004037/2.059, allocations: 1.757 MB / 0.7478 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009034/2.06, allocations: 464.4 kB / 0.7483 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/2.06, allocations: 1.5 kB / 0.7483 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000395/2.06, allocations: 172.2 kB / 0.7484 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006786/2.061, allocations: 135.5 kB / 0.7485 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/2.062, allocations: 0.8902 MB / 0.7494 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/2.063, allocations: 0.8195 MB / 0.7502 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/2.063, allocations: 27.44 kB / 0.7502 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of SimCode: time 3.11e-07/2.063, allocations: 0 / 0.7502 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of Templates: time 0.03795/2.101, allocations: 26.92 MB / 0.7765 GB, free: 0.5703 MB / 0.6387 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]