Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.8133/0.8133, allocations: 111.6 MB / 131 MB, free: 5.086 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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 175.7 MB, free: 9.441 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.499e-05, allocations: 6.25 kB / 175.7 MB, free: 9.434 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.SimpleExamples.TestDynamicCheckValve): time 1.718/1.718, allocations: 254.9 MB / 430.7 MB, free: 15.92 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05195/1.77, allocations: 33.27 MB / 463.9 MB, free: 14.52 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/1.77, allocations: 8 kB / 463.9 MB, free: 14.52 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.0004881/1.771, allocations: 123.2 kB / 464.1 MB, free: 14.39 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003596/1.771, allocations: 158.8 kB / 464.2 MB, free: 14.24 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.02716/1.798, allocations: 9.951 MB / 474.2 MB, free: 4.25 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000827/1.799, allocations: 474.4 kB / 474.6 MB, free: 3.785 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/1.799, allocations: 140.8 kB / 474.8 MB, free: 3.648 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004831/1.8, allocations: 279.2 kB / 475 MB, free: 3.375 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/1.8, allocations: 127.6 kB / 475.2 MB, free: 3.25 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/1.8, allocations: 24 kB / 475.2 MB, free: 3.227 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03341/1.833, allocations: 16.8 MB / 492 MB, free: 2.398 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/1.833, allocations: 71.67 kB / 492.1 MB, free: 2.328 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/1.834, allocations: 115.7 kB / 492.2 MB, free: 2.215 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2669/2.101, allocations: 10.9 MB / 0.4913 GB, free: 18.87 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/2.101, allocations: 0.9375 kB / 0.4913 GB, free: 18.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/2.101, allocations: 0.5625 kB / 0.4913 GB, free: 18.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.977e-06/2.101, allocations: 0 / 0.4913 GB, free: 18.87 MB / 442.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.007757/2.108, allocations: 1.695 MB / 0.4929 GB, free: 17.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/2.108, allocations: 13.17 kB / 0.493 GB, free: 17.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/2.109, allocations: 75.8 kB / 0.493 GB, free: 17.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/2.109, allocations: 203.5 kB / 0.4932 GB, free: 17.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.418e-05/2.109, allocations: 71.06 kB / 0.4933 GB, free: 17.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/2.109, allocations: 28.7 kB / 0.4933 GB, free: 17.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007734/2.11, allocations: 340.6 kB / 0.4936 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/2.11, allocations: 2.219 kB / 0.4936 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/2.11, allocations: 15.31 kB / 0.4937 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/2.11, allocations: 10.91 kB / 0.4937 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006173/2.111, allocations: 182.1 kB / 0.4938 GB, free: 17.52 MB / 442.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.0304/2.141, allocations: 6.416 MB / 0.5001 GB, free: 16.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005518/2.142, allocations: 206.3 kB / 0.5003 GB, free: 16.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/2.142, allocations: 98.34 kB / 0.5004 GB, free: 16.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1745/2.316, allocations: 48.64 MB / 0.5479 GB, free: 13.04 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004683/2.317, allocations: 210.6 kB / 0.5481 GB, free: 12.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.503e-06/2.317, allocations: 0 / 0.5481 GB, free: 12.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.001158/2.318, allocations: 425.7 kB / 0.5485 GB, free: 12.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/2.318, allocations: 85.14 kB / 0.5486 GB, free: 12.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/2.318, allocations: 311.7 kB / 0.5489 GB, free: 12.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/2.318, allocations: 33.64 kB / 0.5489 GB, free: 12.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/2.319, allocations: 219.4 kB / 0.5491 GB, free: 11.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/2.319, allocations: 171.7 kB / 0.5493 GB, free: 11.76 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/2.319, allocations: 87.19 kB / 0.5494 GB, free: 11.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003047/2.319, allocations: 0.5207 MB / 0.5499 GB, free: 11.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/2.319, allocations: 85.05 kB / 0.55 GB, free: 11.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/2.32, allocations: 157.2 kB / 0.5501 GB, free: 10.98 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/2.32, allocations: 261.9 kB / 0.5504 GB, free: 10.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/2.32, allocations: 0.5469 kB / 0.5504 GB, free: 10.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009064/2.321, allocations: 402.8 kB / 0.5507 GB, free: 10.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/2.321, allocations: 7.938 kB / 0.5508 GB, free: 10.44 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/2.321, allocations: 0 / 0.5508 GB, free: 10.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009643/2.322, allocations: 182.9 kB / 0.5509 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/2.322, allocations: 26.98 kB / 0.551 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003304/2.325, allocations: 3.185 MB / 0.5541 GB, free: 7.105 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/2.326, allocations: 31.86 kB / 0.5541 GB, free: 7.078 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/2.326, allocations: 11.98 kB / 0.5541 GB, free: 7.066 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.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.0002044/2.326, allocations: 197.3 kB / 0.5543 GB, free: 6.887 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/2.326, allocations: 37.72 kB / 0.5543 GB, free: 6.852 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009255/2.327, allocations: 0.5233 MB / 0.5548 GB, free: 6.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005944/2.328, allocations: 313.7 kB / 0.5551 GB, free: 6.027 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/2.328, allocations: 0 / 0.5551 GB, free: 6.027 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/2.328, allocations: 0 / 0.5551 GB, free: 6.027 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/2.329, allocations: 0.9046 MB / 0.556 GB, free: 5.094 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/2.329, allocations: 0 / 0.556 GB, free: 5.094 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/2.329, allocations: 51.97 kB / 0.5561 GB, free: 5.043 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/2.33, allocations: 86.84 kB / 0.5562 GB, free: 4.957 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/2.33, allocations: 12.88 kB / 0.5562 GB, free: 4.945 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007628/2.331, allocations: 0.8742 MB / 0.557 GB, free: 4.039 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/2.331, allocations: 0 / 0.557 GB, free: 4.039 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/2.332, allocations: 0.6246 MB / 0.5576 GB, free: 3.398 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/2.332, allocations: 56.2 kB / 0.5577 GB, free: 3.344 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/2.332, allocations: 4 kB / 0.5577 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/2.332, allocations: 17.42 kB / 0.5577 GB, free: 3.324 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/2.332, allocations: 36 kB / 0.5577 GB, free: 3.289 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/2.332, allocations: 15.98 kB / 0.5578 GB, free: 3.273 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002635/2.332, allocations: 241.7 kB / 0.558 GB, free: 3.035 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/2.332, allocations: 4 kB / 0.558 GB, free: 3.031 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004603/2.337, allocations: 1.235 MB / 0.5592 GB, free: 1.793 MB / 474.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.006196/2.343, allocations: 1.902 MB / 0.5611 GB, free: 136 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/2.344, allocations: 0.4959 MB / 0.5615 GB, free: 15.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/2.344, allocations: 0 / 0.5615 GB, free: 15.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004978/2.345, allocations: 192.2 kB / 0.5617 GB, free: 15.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008464/2.346, allocations: 134.7 kB / 0.5618 GB, free: 15.31 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/2.347, allocations: 0.7616 MB / 0.5626 GB, free: 14.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/2.348, allocations: 204.3 kB / 0.5628 GB, free: 14.32 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/2.348, allocations: 30.3 kB / 0.5628 GB, free: 14.29 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.378e-05/2.348, allocations: 28.48 kB / 0.5628 GB, free: 14.27 MB / 490.7 MB Notification: Performance of SimCode: time 7.72e-07/2.348, allocations: 4 kB / 0.5628 GB, free: 14.26 MB / 490.7 MB Notification: Performance of Templates: time 0.07525/2.423, allocations: 44.81 MB / 0.6066 GB, free: 1.73 MB / 0.5105 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 14.033103835070506]