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.474/0.474, allocations: 111.6 MB / 131.4 MB, free: 4.422 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 2.675e-06/2.675e-06, allocations: 0 / 176.4 MB, free: 9.012 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.592e-05/1.86e-05, allocations: 2.312 kB / 176.4 MB, free: 9.008 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.189/1.189, allocations: 257.1 MB / 433.5 MB, free: 228 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02865/1.217, allocations: 32.51 MB / 466 MB, free: 15.59 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/1.218, allocations: 4 kB / 466 MB, free: 15.59 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.0004261/1.218, allocations: 111.3 kB / 466.1 MB, free: 15.48 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/1.218, allocations: 131 kB / 466.3 MB, free: 15.35 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.01997/1.238, allocations: 9.791 MB / 476 MB, free: 5.512 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005368/1.239, allocations: 398 kB / 476.4 MB, free: 5.121 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/1.239, allocations: 112.8 kB / 476.5 MB, free: 5.008 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/1.239, allocations: 235.3 kB / 476.8 MB, free: 4.777 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/1.24, allocations: 87.72 kB / 476.9 MB, free: 4.691 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.718e-05/1.24, allocations: 23.98 kB / 476.9 MB, free: 4.668 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2403/1.48, allocations: 16.78 MB / 493.7 MB, free: 9.148 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/1.48, allocations: 50.2 kB / 493.7 MB, free: 9.148 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/1.48, allocations: 99.5 kB / 493.8 MB, free: 9.148 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02066/1.501, allocations: 10.75 MB / 0.4927 GB, free: 6.105 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.501, allocations: 0 / 0.4927 GB, free: 6.105 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.083e-06/1.501, allocations: 3.25 kB / 0.4927 GB, free: 6.105 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/1.501, allocations: 0 / 0.4927 GB, free: 6.105 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004477/1.505, allocations: 1.547 MB / 0.4942 GB, free: 5.012 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/1.505, allocations: 13.11 kB / 0.4943 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.437e-05/1.505, allocations: 49.19 kB / 0.4943 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/1.506, allocations: 191.5 kB / 0.4945 GB, free: 4.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/1.506, allocations: 39.95 kB / 0.4945 GB, free: 4.766 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/1.506, allocations: 24.41 kB / 0.4945 GB, free: 4.758 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/1.506, allocations: 264.2 kB / 0.4948 GB, free: 4.566 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.506, allocations: 1.344 kB / 0.4948 GB, free: 4.566 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/1.506, allocations: 6.719 kB / 0.4948 GB, free: 4.562 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/1.506, allocations: 17.33 kB / 0.4948 GB, free: 4.555 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.79e-05/1.506, allocations: 78.84 kB / 0.4949 GB, free: 4.539 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.008235/1.514, allocations: 5.53 MB / 0.5003 GB, free: 2.043 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/1.514, allocations: 73.47 kB / 0.5004 GB, free: 2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.489e-05/1.514, allocations: 41.03 kB / 0.5004 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07377/1.588, allocations: 42.33 MB / 0.5417 GB, free: 8.574 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/1.588, allocations: 153.2 kB / 0.5419 GB, free: 8.418 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/1.588, allocations: 0 / 0.5419 GB, free: 8.418 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.000593/1.589, allocations: 282.1 kB / 0.5422 GB, free: 8.141 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/1.589, allocations: 85.11 kB / 0.5422 GB, free: 8.039 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/1.589, allocations: 228.1 kB / 0.5425 GB, free: 7.816 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/1.589, allocations: 29.7 kB / 0.5425 GB, free: 7.781 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.737e-05/1.589, allocations: 206.2 kB / 0.5427 GB, free: 7.582 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.217e-05/1.589, allocations: 144.8 kB / 0.5428 GB, free: 7.453 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.822e-05/1.589, allocations: 72.67 kB / 0.5429 GB, free: 7.383 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/1.59, allocations: 0.5129 MB / 0.5434 GB, free: 6.871 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/1.59, allocations: 32.48 kB / 0.5434 GB, free: 6.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.603e-05/1.59, allocations: 123.8 kB / 0.5435 GB, free: 6.699 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/1.59, allocations: 240.5 kB / 0.5438 GB, free: 6.449 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/1.59, allocations: 0.625 kB / 0.5438 GB, free: 6.449 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003155/1.59, allocations: 263.1 kB / 0.544 GB, free: 6.195 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/1.59, allocations: 8 kB / 0.544 GB, free: 6.188 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/1.59, allocations: 4.219 kB / 0.544 GB, free: 6.184 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003113/1.591, allocations: 75.61 kB / 0.5441 GB, free: 6.105 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/1.591, allocations: 23.08 kB / 0.5441 GB, free: 6.086 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006565/1.591, allocations: 0.8387 MB / 0.5449 GB, free: 5.227 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.917e-05/1.591, allocations: 35.77 kB / 0.545 GB, free: 5.191 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/1.591, allocations: 12.03 kB / 0.545 GB, free: 5.18 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,sourceP1.C.b,puitsP1.C.a,checkValve3.C1.a,checkValve3.C2.b,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0) * 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.000143/1.592, allocations: 172.7 kB / 0.5452 GB, free: 5.004 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/1.592, allocations: 33.02 kB / 0.5452 GB, free: 4.973 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003673/1.592, allocations: 395.5 kB / 0.5456 GB, free: 4.547 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001582/1.592, allocations: 212.1 kB / 0.5458 GB, free: 4.336 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/1.592, allocations: 0 / 0.5458 GB, free: 4.336 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.592, allocations: 4 kB / 0.5458 GB, free: 4.332 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006288/1.593, allocations: 0.6651 MB / 0.5464 GB, free: 3.664 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/1.593, allocations: 0 / 0.5464 GB, free: 3.664 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.262e-05/1.593, allocations: 23.28 kB / 0.5464 GB, free: 3.645 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002187/1.593, allocations: 78.81 kB / 0.5465 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/1.593, allocations: 4.688 kB / 0.5465 GB, free: 3.562 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002817/1.593, allocations: 0.8527 MB / 0.5474 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.593, allocations: 0 / 0.5474 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/1.594, allocations: 396 kB / 0.5477 GB, free: 2.285 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/1.594, allocations: 39.72 kB / 0.5478 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.381e-05/1.594, allocations: 16.94 kB / 0.5478 GB, free: 2.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-05/1.594, allocations: 8 kB / 0.5478 GB, free: 2.223 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/1.594, allocations: 27.05 kB / 0.5478 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/1.594, allocations: 4 kB / 0.5478 GB, free: 2.195 MB / 474.7 MB Notification: Performance of sorting global known variables: time 9.45e-05/1.594, allocations: 188.9 kB / 0.548 GB, free: 2.016 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/1.594, allocations: 4.031 kB / 0.548 GB, free: 2.012 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00298/1.597, allocations: 1.212 MB / 0.5492 GB, free: 0.7969 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.005103/1.602, allocations: 1.998 MB / 0.5511 GB, free: 15.02 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004751/1.602, allocations: 210.8 kB / 0.5513 GB, free: 14.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.602, allocations: 448 / 0.5513 GB, free: 14.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/1.603, allocations: 106.4 kB / 0.5514 GB, free: 14.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/1.603, allocations: 119.7 kB / 0.5516 GB, free: 14.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/1.604, allocations: 0.5405 MB / 0.5521 GB, free: 14.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/1.604, allocations: 92.81 kB / 0.5522 GB, free: 13.94 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 9.841e-05/1.605, allocations: 19.42 kB / 0.5522 GB, free: 13.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/1.605, allocations: 146.1 kB / 0.5523 GB, free: 13.78 MB / 490.7 MB Notification: Performance of SimCode: time 1.953e-06/1.605, allocations: 0 / 0.5523 GB, free: 13.78 MB / 490.7 MB Notification: Performance of Templates: time 0.05238/1.657, allocations: 50.28 MB / 0.6014 GB, free: 11.74 MB / 0.5261 GB " [Timeout remaining time 658] 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: 5.6381683479994535]