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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.5125/0.5125, allocations: 111.6 MB / 131.5 MB, free: 4.926 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.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 1.623e-06/1.623e-06, allocations: 0 / 176.5 MB, free: 8.992 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.807e-05, allocations: 7.719 kB / 176.6 MB, free: 8.988 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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.112/1.112, allocations: 263 MB / 439.5 MB, free: 14.91 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03163/1.144, allocations: 33.32 MB / 472.9 MB, free: 13.46 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002823/1.144, allocations: 0 / 472.9 MB, free: 13.46 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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:19:3-20:80: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/DynamicCheckValve.mo:36:3-37:80: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/DynamicCheckValve.mo:38:3-39:78: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.0004237/1.144, allocations: 127.2 kB / 473 MB, free: 13.34 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/1.145, allocations: 158.8 kB / 473.1 MB, free: 13.18 MB / 426.7 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02267/1.167, allocations: 10.04 MB / 483.2 MB, free: 3.09 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000778/1.168, allocations: 478.4 kB / 483.6 MB, free: 2.621 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/1.168, allocations: 138.8 kB / 483.8 MB, free: 2.488 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004527/1.169, allocations: 279.2 kB / 484.1 MB, free: 2.215 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/1.169, allocations: 123.7 kB / 484.2 MB, free: 2.094 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/1.169, allocations: 27.94 kB / 484.2 MB, free: 2.066 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2552/1.424, allocations: 16.78 MB / 0.4892 GB, free: 8.004 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/1.424, allocations: 69.72 kB / 0.4893 GB, free: 8.004 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/1.425, allocations: 111.9 kB / 0.4894 GB, free: 8.004 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02037/1.445, allocations: 10.81 MB / 0.5 GB, free: 3.086 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/1.445, allocations: 3.984 kB / 0.5 GB, free: 3.082 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/1.445, allocations: 1.656 kB / 0.5 GB, free: 3.082 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/1.445, allocations: 0 / 0.5 GB, free: 3.082 MB / 426.7 MB 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.00459/1.45, allocations: 1.474 MB / 0.5014 GB, free: 2.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/1.45, allocations: 13.83 kB / 0.5014 GB, free: 2.086 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/1.45, allocations: 51.64 kB / 0.5015 GB, free: 2.066 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/1.45, allocations: 192.4 kB / 0.5017 GB, free: 1.898 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/1.45, allocations: 71.47 kB / 0.5017 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/1.45, allocations: 24.31 kB / 0.5017 GB, free: 1.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/1.45, allocations: 272.2 kB / 0.502 GB, free: 1.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/1.451, allocations: 7.25 kB / 0.502 GB, free: 1.629 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/1.451, allocations: 6.812 kB / 0.502 GB, free: 1.625 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/1.451, allocations: 17.77 kB / 0.502 GB, free: 1.617 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/1.451, allocations: 94.7 kB / 0.5021 GB, free: 1.598 MB / 426.7 MB 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.008261/1.459, allocations: 5.098 MB / 0.5071 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/1.459, allocations: 157.8 kB / 0.5073 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.368e-05/1.459, allocations: 45.22 kB / 0.5073 GB, free: 14.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0738/1.533, allocations: 43.17 MB / 0.5495 GB, free: 3.875 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/1.533, allocations: 149.6 kB / 0.5496 GB, free: 3.727 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.653e-06/1.533, allocations: 0 / 0.5496 GB, free: 3.727 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.0008245/1.534, allocations: 283 kB / 0.5499 GB, free: 3.449 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/1.534, allocations: 89.09 kB / 0.55 GB, free: 3.344 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/1.534, allocations: 204.5 kB / 0.5502 GB, free: 3.156 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/1.534, allocations: 33.7 kB / 0.5502 GB, free: 3.117 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/1.534, allocations: 152.1 kB / 0.5503 GB, free: 2.969 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.212e-05/1.534, allocations: 166.5 kB / 0.5505 GB, free: 2.816 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/1.534, allocations: 60.16 kB / 0.5505 GB, free: 2.762 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.647e-05/1.535, allocations: 350.4 kB / 0.5509 GB, free: 2.426 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.539e-05/1.535, allocations: 51.33 kB / 0.5509 GB, free: 2.379 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.659e-05/1.535, allocations: 85.27 kB / 0.551 GB, free: 2.289 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/1.535, allocations: 156 kB / 0.5512 GB, free: 2.133 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/1.535, allocations: 0 / 0.5512 GB, free: 2.133 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0003184/1.535, allocations: 254.5 kB / 0.5514 GB, free: 1.887 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/1.535, allocations: 4 kB / 0.5514 GB, free: 1.883 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.535, allocations: 0 / 0.5514 GB, free: 1.883 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003842/1.536, allocations: 129.6 kB / 0.5515 GB, free: 1.754 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.454e-05/1.536, allocations: 22.98 kB / 0.5516 GB, free: 1.734 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/1.537, allocations: 2.016 MB / 0.5535 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/1.537, allocations: 31.8 kB / 0.5536 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/1.537, allocations: 15.98 kB / 0.5536 GB, free: 15.59 MB / 490.7 MB 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.libre,$whenCondition1,$whenCondition2,sourceP1.C.b,puitsP1.C.a,checkValve.C1.a,checkValve.C2.b) * 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.0001098/1.537, allocations: 124.5 kB / 0.5537 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/1.537, allocations: 15.98 kB / 0.5537 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/1.538, allocations: 390.1 kB / 0.5541 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001646/1.538, allocations: 192.1 kB / 0.5543 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/1.538, allocations: 4 kB / 0.5543 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/1.538, allocations: 0 / 0.5543 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006378/1.538, allocations: 0.6195 MB / 0.5549 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/1.538, allocations: 0 / 0.5549 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/1.538, allocations: 58.88 kB / 0.5549 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/1.539, allocations: 76 kB / 0.555 GB, free: 14.12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/1.539, allocations: 8.281 kB / 0.555 GB, free: 14.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002599/1.539, allocations: 0.5751 MB / 0.5556 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.539, allocations: 0 / 0.5556 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/1.539, allocations: 437.4 kB / 0.556 GB, free: 13.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/1.539, allocations: 39.67 kB / 0.556 GB, free: 13.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/1.539, allocations: 20.52 kB / 0.556 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.405e-05/1.539, allocations: 15.98 kB / 0.5561 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/1.54, allocations: 27.94 kB / 0.5561 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/1.54, allocations: 9.25 kB / 0.5561 GB, free: 12.97 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.135e-05/1.54, allocations: 90.12 kB / 0.5562 GB, free: 12.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/1.54, allocations: 0 / 0.5562 GB, free: 12.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003541/1.543, allocations: 1.228 MB / 0.5574 GB, free: 11.66 MB / 490.7 MB 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.00418/1.547, allocations: 2.044 MB / 0.5594 GB, free: 9.848 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005211/1.548, allocations: 353.8 kB / 0.5597 GB, free: 9.496 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/1.548, allocations: 4 kB / 0.5597 GB, free: 9.492 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/1.548, allocations: 117 kB / 0.5598 GB, free: 9.379 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/1.548, allocations: 130.5 kB / 0.5599 GB, free: 9.258 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/1.55, allocations: 0.754 MB / 0.5607 GB, free: 8.504 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.323e-05/1.55, allocations: 105.8 kB / 0.5608 GB, free: 8.379 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 9.944e-05/1.55, allocations: 33.23 kB / 0.5608 GB, free: 8.352 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/1.55, allocations: 125.3 kB / 0.5609 GB, free: 8.227 MB / 490.7 MB Notification: Performance of SimCode: time 8.92e-07/1.55, allocations: 0 / 0.5609 GB, free: 8.227 MB / 490.7 MB Notification: Performance of Templates: time 0.05278/1.603, allocations: 50.85 MB / 0.6106 GB, free: 5.699 MB / 0.5261 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.541108552832156]