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.5049/0.5049, allocations: 111.6 MB / 132.2 MB, free: 4.949 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.763e-06/1.763e-06, allocations: 0 / 177.2 MB, free: 9.047 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.153e-05/1.33e-05, allocations: 2.312 kB / 177.2 MB, free: 9.043 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.04/1.04, allocations: 257.2 MB / 434.4 MB, free: 84 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0266/1.067, allocations: 32.79 MB / 467.2 MB, free: 15.16 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/1.067, allocations: 0 / 467.2 MB, free: 15.16 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.0003752/1.067, allocations: 135.2 kB / 467.4 MB, free: 15.03 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002415/1.067, allocations: 154.8 kB / 467.5 MB, free: 14.88 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.01741/1.085, allocations: 9.955 MB / 477.5 MB, free: 4.879 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005416/1.085, allocations: 474.4 kB / 477.9 MB, free: 4.414 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/1.085, allocations: 140.7 kB / 478.1 MB, free: 4.273 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/1.086, allocations: 287.3 kB / 478.3 MB, free: 3.992 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/1.086, allocations: 123.6 kB / 478.5 MB, free: 3.871 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.145e-05/1.086, allocations: 24 kB / 478.5 MB, free: 3.848 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2049/1.291, allocations: 16.79 MB / 495.3 MB, free: 8.766 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/1.291, allocations: 63.2 kB / 495.3 MB, free: 8.766 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/1.291, allocations: 120.2 kB / 495.5 MB, free: 8.766 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01257/1.304, allocations: 10.8 MB / 0.4944 GB, free: 5.188 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.304, allocations: 0 / 0.4944 GB, free: 5.188 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.192e-06/1.304, allocations: 0 / 0.4944 GB, free: 5.188 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/1.304, allocations: 0 / 0.4944 GB, free: 5.188 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.002827/1.307, allocations: 1.649 MB / 0.496 GB, free: 4.031 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/1.307, allocations: 14.39 kB / 0.496 GB, free: 4.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/1.307, allocations: 67.56 kB / 0.4961 GB, free: 3.996 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/1.307, allocations: 215.5 kB / 0.4963 GB, free: 3.805 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/1.307, allocations: 70.44 kB / 0.4964 GB, free: 3.734 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/1.307, allocations: 25.5 kB / 0.4964 GB, free: 3.727 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/1.307, allocations: 278.2 kB / 0.4966 GB, free: 3.523 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/1.307, allocations: 1.969 kB / 0.4966 GB, free: 3.523 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/1.307, allocations: 15.97 kB / 0.4967 GB, free: 3.512 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/1.307, allocations: 14.92 kB / 0.4967 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/1.307, allocations: 106.9 kB / 0.4968 GB, free: 3.477 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.007822/1.315, allocations: 5.572 MB / 0.5022 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/1.315, allocations: 122.2 kB / 0.5023 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.862e-05/1.315, allocations: 64.38 kB / 0.5024 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07262/1.388, allocations: 42.04 MB / 0.5434 GB, free: 7.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/1.388, allocations: 173.6 kB / 0.5436 GB, free: 7.082 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.423e-06/1.388, allocations: 0 / 0.5436 GB, free: 7.082 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.0005291/1.389, allocations: 304.2 kB / 0.5439 GB, free: 6.781 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/1.389, allocations: 85.14 kB / 0.544 GB, free: 6.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/1.389, allocations: 275 kB / 0.5442 GB, free: 6.418 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/1.389, allocations: 25.7 kB / 0.5443 GB, free: 6.387 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.903e-05/1.389, allocations: 219.3 kB / 0.5445 GB, free: 6.172 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/1.389, allocations: 166.8 kB / 0.5446 GB, free: 6.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.075e-05/1.389, allocations: 78.67 kB / 0.5447 GB, free: 5.945 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/1.389, allocations: 0.5141 MB / 0.5452 GB, free: 5.434 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.412e-05/1.389, allocations: 41.58 kB / 0.5453 GB, free: 5.395 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.276e-05/1.389, allocations: 115.5 kB / 0.5454 GB, free: 5.27 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/1.39, allocations: 178.4 kB / 0.5455 GB, free: 5.09 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.39, allocations: 0 / 0.5455 GB, free: 5.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0003579/1.39, allocations: 299.5 kB / 0.5458 GB, free: 4.797 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/1.39, allocations: 8 kB / 0.5458 GB, free: 4.789 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/1.39, allocations: 3.938 kB / 0.5458 GB, free: 4.785 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004062/1.39, allocations: 142.6 kB / 0.546 GB, free: 4.645 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.69e-05/1.39, allocations: 31.08 kB / 0.546 GB, free: 4.617 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/1.392, allocations: 2.954 MB / 0.5489 GB, free: 1.547 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/1.392, allocations: 38.12 kB / 0.5489 GB, free: 1.512 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/1.392, allocations: 7.984 kB / 0.5489 GB, free: 1.504 MB / 474.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 9.581e-05/1.392, allocations: 172.2 kB / 0.5491 GB, free: 1.328 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/1.392, allocations: 35.81 kB / 0.5491 GB, free: 1.293 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003857/1.393, allocations: 457.6 kB / 0.5496 GB, free: 0.8125 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001878/1.393, allocations: 225.4 kB / 0.5498 GB, free: 0.582 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-06/1.393, allocations: 0 / 0.5498 GB, free: 0.582 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.393, allocations: 3.984 kB / 0.5498 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006547/1.393, allocations: 0.7211 MB / 0.5505 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.393, allocations: 0 / 0.5505 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/1.394, allocations: 55.16 kB / 0.5505 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/1.394, allocations: 71.62 kB / 0.5506 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/1.394, allocations: 8 kB / 0.5506 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002997/1.394, allocations: 0.8514 MB / 0.5514 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/1.394, allocations: 0 / 0.5514 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004011/1.394, allocations: 0.4965 MB / 0.5519 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/1.395, allocations: 53.55 kB / 0.552 GB, free: 14.31 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/1.395, allocations: 11.95 kB / 0.552 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-05/1.395, allocations: 11.94 kB / 0.552 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/1.395, allocations: 35.92 kB / 0.552 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/1.395, allocations: 17.81 kB / 0.5521 GB, free: 14.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 8.757e-05/1.395, allocations: 204 kB / 0.5523 GB, free: 14.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/1.395, allocations: 0 / 0.5523 GB, free: 14.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002302/1.397, allocations: 1.228 MB / 0.5535 GB, free: 12.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * 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.003109/1.4, allocations: 1.993 MB / 0.5554 GB, free: 11.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004447/1.401, allocations: 423.8 kB / 0.5558 GB, free: 10.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/1.401, allocations: 0 / 0.5558 GB, free: 10.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/1.401, allocations: 135 kB / 0.5559 GB, free: 10.49 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/1.401, allocations: 131.9 kB / 0.5561 GB, free: 10.37 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/1.402, allocations: 0.7432 MB / 0.5568 GB, free: 9.621 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.019e-05/1.402, allocations: 109.8 kB / 0.5569 GB, free: 9.492 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.542e-05/1.402, allocations: 33.28 kB / 0.5569 GB, free: 9.465 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/1.403, allocations: 158.1 kB / 0.5571 GB, free: 9.309 MB / 490.7 MB Notification: Performance of SimCode: time 7.71e-07/1.403, allocations: 0 / 0.5571 GB, free: 9.309 MB / 490.7 MB Notification: Performance of Templates: time 0.0447/1.447, allocations: 51.68 MB / 0.6075 GB, free: 5.977 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: 6.939346233848482]