Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.868/0.868, allocations: 111.6 MB / 131 MB, free: 5.082 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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.497e-06/3.497e-06, allocations: 0 / 175.6 MB, free: 9.547 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.901e-05/3.251e-05, allocations: 6.25 kB / 175.6 MB, free: 9.539 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.TestCheckValve): time 1.766/1.766, allocations: 254.7 MB / 430.3 MB, free: 468 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05143/1.817, allocations: 32.98 MB / 463.3 MB, free: 15.36 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/1.817, allocations: 4 kB / 463.3 MB, free: 15.35 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/CheckValve.mo:23:3-24:81: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/CheckValve.mo:25:3-26:79: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.0004081/1.818, allocations: 107.4 kB / 463.4 MB, free: 15.25 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/1.818, allocations: 131 kB / 463.6 MB, free: 15.12 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.02773/1.846, allocations: 9.802 MB / 473.4 MB, free: 5.281 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006751/1.846, allocations: 386.1 kB / 473.7 MB, free: 4.902 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/1.847, allocations: 116.8 kB / 473.8 MB, free: 4.789 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004347/1.847, allocations: 231.4 kB / 474.1 MB, free: 4.562 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/1.847, allocations: 91.72 kB / 474.2 MB, free: 4.473 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.937e-05/1.847, allocations: 20 kB / 474.2 MB, free: 4.453 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03401/1.881, allocations: 16.78 MB / 491 MB, free: 3.641 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/1.881, allocations: 55.77 kB / 491 MB, free: 3.586 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/1.882, allocations: 99.77 kB / 491.1 MB, free: 3.488 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2173/2.099, allocations: 10.83 MB / 0.4902 GB, free: 19.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/2.099, allocations: 1.156 kB / 0.4902 GB, free: 19.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/2.099, allocations: 0 / 0.4902 GB, free: 19.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/2.099, allocations: 0 / 0.4902 GB, free: 19.82 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.006397/2.105, allocations: 1.563 MB / 0.4917 GB, free: 18.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/2.105, allocations: 13.92 kB / 0.4917 GB, free: 18.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/2.106, allocations: 54.8 kB / 0.4918 GB, free: 18.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/2.106, allocations: 176.7 kB / 0.4919 GB, free: 18.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.3e-05/2.106, allocations: 42.52 kB / 0.492 GB, free: 18.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/2.106, allocations: 24.41 kB / 0.492 GB, free: 18.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/2.106, allocations: 308.7 kB / 0.4923 GB, free: 18.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/2.106, allocations: 1.125 kB / 0.4923 GB, free: 18.56 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/2.106, allocations: 12.78 kB / 0.4923 GB, free: 18.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/2.106, allocations: 13.31 kB / 0.4923 GB, free: 18.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/2.107, allocations: 149.2 kB / 0.4925 GB, free: 18.56 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.01913/2.126, allocations: 6.343 MB / 0.4987 GB, free: 17.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/2.126, allocations: 113.7 kB / 0.4988 GB, free: 17.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/2.126, allocations: 70.02 kB / 0.4988 GB, free: 17.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.175/2.301, allocations: 48.62 MB / 0.5463 GB, free: 14.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004456/2.302, allocations: 203.7 kB / 0.5465 GB, free: 14.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 1.443e-06/2.302, allocations: 0 / 0.5465 GB, free: 14.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.001122/2.303, allocations: 368.9 kB / 0.5469 GB, free: 14.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/2.303, allocations: 86.08 kB / 0.547 GB, free: 14.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/2.303, allocations: 253.1 kB / 0.5472 GB, free: 13.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/2.303, allocations: 33.64 kB / 0.5472 GB, free: 13.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/2.303, allocations: 210.4 kB / 0.5474 GB, free: 13.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/2.303, allocations: 142 kB / 0.5476 GB, free: 13.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/2.304, allocations: 82.17 kB / 0.5476 GB, free: 13.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003057/2.304, allocations: 0.5224 MB / 0.5482 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/2.304, allocations: 67.38 kB / 0.5482 GB, free: 12.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/2.304, allocations: 161.9 kB / 0.5484 GB, free: 12.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000713/2.305, allocations: 323.2 kB / 0.5487 GB, free: 12.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/2.305, allocations: 8 kB / 0.5487 GB, free: 12.49 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007271/2.306, allocations: 330.3 kB / 0.549 GB, free: 12.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/2.306, allocations: 5.094 kB / 0.549 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/2.306, allocations: 4 kB / 0.549 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/2.306, allocations: 108.5 kB / 0.5491 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/2.306, allocations: 26.86 kB / 0.5491 GB, free: 12.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007778/2.307, allocations: 0.8777 MB / 0.55 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/2.307, allocations: 28.59 kB / 0.55 GB, free: 11.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/2.307, allocations: 8.641 kB / 0.55 GB, free: 11.2 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002464/2.308, allocations: 194.4 kB / 0.5502 GB, free: 11.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/2.308, allocations: 33.02 kB / 0.5502 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/2.309, allocations: 484.6 kB / 0.5507 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005064/2.309, allocations: 268.2 kB / 0.551 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/2.309, allocations: 0 / 0.551 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/2.309, allocations: 5.516 kB / 0.551 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/2.31, allocations: 0.794 MB / 0.5517 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/2.31, allocations: 0 / 0.5517 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/2.311, allocations: 25.67 kB / 0.5518 GB, free: 9.609 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005059/2.311, allocations: 106.7 kB / 0.5519 GB, free: 9.516 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/2.311, allocations: 10.11 kB / 0.5519 GB, free: 9.508 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006797/2.312, allocations: 0.8557 MB / 0.5527 GB, free: 8.645 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/2.312, allocations: 4.031 kB / 0.5527 GB, free: 8.641 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/2.313, allocations: 462.7 kB / 0.5532 GB, free: 8.227 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/2.313, allocations: 38.84 kB / 0.5532 GB, free: 8.191 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/2.313, allocations: 9.438 kB / 0.5532 GB, free: 8.188 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/2.313, allocations: 14.67 kB / 0.5532 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/2.313, allocations: 14.53 kB / 0.5532 GB, free: 8.164 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/2.313, allocations: 16.36 kB / 0.5533 GB, free: 8.152 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002089/2.313, allocations: 208.9 kB / 0.5535 GB, free: 7.973 MB / 474.7 MB Notification: Performance of sort global known variables: time 1e-07/2.313, allocations: 0 / 0.5535 GB, free: 7.973 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005997/2.319, allocations: 1.223 MB / 0.5546 GB, free: 6.828 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009116/2.328, allocations: 1.904 MB / 0.5565 GB, free: 5.211 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/2.329, allocations: 279.4 kB / 0.5568 GB, free: 4.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/2.329, allocations: 0 / 0.5568 GB, free: 4.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003837/2.33, allocations: 146.8 kB / 0.5569 GB, free: 4.859 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/2.331, allocations: 117.3 kB / 0.557 GB, free: 4.766 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/2.332, allocations: 0.5571 MB / 0.5576 GB, free: 4.234 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/2.332, allocations: 173.3 kB / 0.5577 GB, free: 4.043 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0001031/2.332, allocations: 22.2 kB / 0.5578 GB, free: 4.023 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.92e-05/2.332, allocations: 20.5 kB / 0.5578 GB, free: 4.004 MB / 474.7 MB Notification: Performance of SimCode: time 1.012e-06/2.332, allocations: 0 / 0.5578 GB, free: 4.004 MB / 474.7 MB Notification: Performance of Templates: time 0.07324/2.405, allocations: 43.37 MB / 0.6001 GB, free: 8.953 MB / 0.5105 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.602237320970744]