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.4967/0.4967, allocations: 111.6 MB / 132.2 MB, free: 4.418 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.124e-06/2.124e-06, allocations: 0 / 177.2 MB, free: 9.012 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.759e-05, allocations: 6.312 kB / 177.2 MB, free: 9.004 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.098/1.098, allocations: 257 MB / 434.3 MB, free: 232 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03351/1.131, allocations: 32.5 MB / 466.8 MB, free: 15.6 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/1.132, allocations: 4 kB / 466.8 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.0003508/1.132, allocations: 111.3 kB / 466.9 MB, free: 15.48 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002067/1.132, allocations: 131 kB / 467 MB, free: 15.36 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.0196/1.152, allocations: 9.799 MB / 476.8 MB, free: 5.512 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005317/1.152, allocations: 390 kB / 477.2 MB, free: 5.129 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/1.152, allocations: 120.8 kB / 477.3 MB, free: 5.008 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/1.153, allocations: 243.2 kB / 477.6 MB, free: 4.77 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/1.153, allocations: 83.73 kB / 477.6 MB, free: 4.688 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/1.153, allocations: 20 kB / 477.7 MB, free: 4.668 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2225/1.375, allocations: 16.78 MB / 494.4 MB, free: 9.191 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/1.375, allocations: 50.3 kB / 494.5 MB, free: 9.191 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/1.376, allocations: 93.81 kB / 494.6 MB, free: 9.191 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02194/1.398, allocations: 10.75 MB / 0.4935 GB, free: 6.125 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/1.398, allocations: 2.75 kB / 0.4935 GB, free: 6.125 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.398, allocations: 0 / 0.4935 GB, free: 6.125 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/1.398, allocations: 0 / 0.4935 GB, free: 6.125 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.004306/1.402, allocations: 1.544 MB / 0.495 GB, free: 5.031 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/1.402, allocations: 14.39 kB / 0.495 GB, free: 5.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.343e-05/1.402, allocations: 49.72 kB / 0.4951 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/1.402, allocations: 191.8 kB / 0.4952 GB, free: 4.824 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/1.402, allocations: 44.61 kB / 0.4953 GB, free: 4.785 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/1.402, allocations: 19.28 kB / 0.4953 GB, free: 4.781 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/1.403, allocations: 263.7 kB / 0.4956 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/1.403, allocations: 0 / 0.4956 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/1.403, allocations: 12.62 kB / 0.4956 GB, free: 4.582 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/1.403, allocations: 13.73 kB / 0.4956 GB, free: 4.574 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/1.403, allocations: 79.75 kB / 0.4957 GB, free: 4.559 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.01015/1.413, allocations: 5.522 MB / 0.501 GB, free: 2.062 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/1.413, allocations: 69.84 kB / 0.5011 GB, free: 2.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.949e-05/1.413, allocations: 38.22 kB / 0.5011 GB, free: 2.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07578/1.489, allocations: 42.04 MB / 0.5422 GB, free: 8.809 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/1.489, allocations: 155.4 kB / 0.5423 GB, free: 8.652 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/1.489, allocations: 0 / 0.5423 GB, free: 8.652 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005409/1.49, allocations: 273.7 kB / 0.5426 GB, free: 8.383 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/1.49, allocations: 85.11 kB / 0.5427 GB, free: 8.281 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/1.49, allocations: 227.8 kB / 0.5429 GB, free: 8.059 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/1.49, allocations: 29.7 kB / 0.5429 GB, free: 8.023 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/1.49, allocations: 207.1 kB / 0.5431 GB, free: 7.824 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.361e-05/1.49, allocations: 138.2 kB / 0.5433 GB, free: 7.699 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/1.49, allocations: 72.91 kB / 0.5433 GB, free: 7.629 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/1.49, allocations: 0.5074 MB / 0.5438 GB, free: 7.121 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.935e-05/1.49, allocations: 28.48 kB / 0.5439 GB, free: 7.094 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.263e-05/1.491, allocations: 130.6 kB / 0.544 GB, free: 6.945 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/1.491, allocations: 234.3 kB / 0.5442 GB, free: 6.699 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.491, allocations: 3.469 kB / 0.5442 GB, free: 6.699 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003336/1.491, allocations: 250.7 kB / 0.5444 GB, free: 6.457 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/1.491, allocations: 8 kB / 0.5445 GB, free: 6.449 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.491, allocations: 0.625 kB / 0.5445 GB, free: 6.449 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/1.491, allocations: 79.5 kB / 0.5445 GB, free: 6.371 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.833e-05/1.491, allocations: 23.45 kB / 0.5446 GB, free: 6.352 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003962/1.492, allocations: 0.8421 MB / 0.5454 GB, free: 5.484 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.441e-05/1.492, allocations: 31.88 kB / 0.5454 GB, free: 5.453 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/1.492, allocations: 4.938 kB / 0.5454 GB, free: 5.449 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.0001689/1.492, allocations: 182.6 kB / 0.5456 GB, free: 5.266 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/1.492, allocations: 27.86 kB / 0.5456 GB, free: 5.238 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/1.493, allocations: 405.4 kB / 0.546 GB, free: 4.809 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001721/1.493, allocations: 201.8 kB / 0.5462 GB, free: 4.602 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/1.493, allocations: 4 kB / 0.5462 GB, free: 4.598 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.493, allocations: 0 / 0.5462 GB, free: 4.598 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006657/1.493, allocations: 0.6539 MB / 0.5468 GB, free: 3.945 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/1.493, allocations: 0.7969 kB / 0.5468 GB, free: 3.945 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.238e-05/1.494, allocations: 26.89 kB / 0.5469 GB, free: 3.922 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002557/1.494, allocations: 80.52 kB / 0.5469 GB, free: 3.844 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/1.494, allocations: 7.984 kB / 0.5469 GB, free: 3.836 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003292/1.494, allocations: 0.8372 MB / 0.5478 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/1.494, allocations: 0 / 0.5478 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/1.494, allocations: 382.9 kB / 0.5481 GB, free: 2.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/1.494, allocations: 44.41 kB / 0.5482 GB, free: 2.547 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/1.495, allocations: 15.88 kB / 0.5482 GB, free: 2.531 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.687e-05/1.495, allocations: 12.5 kB / 0.5482 GB, free: 2.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/1.495, allocations: 15.97 kB / 0.5482 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/1.495, allocations: 12.03 kB / 0.5482 GB, free: 2.492 MB / 474.7 MB Notification: Performance of sorting global known variables: time 8.253e-05/1.495, allocations: 187.9 kB / 0.5484 GB, free: 2.312 MB / 474.7 MB Notification: Performance of sort global known variables: time 5e-08/1.495, allocations: 0 / 0.5484 GB, free: 2.312 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003712/1.498, allocations: 1.212 MB / 0.5496 GB, free: 1.098 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.004538/1.503, allocations: 2.002 MB / 0.5515 GB, free: 15.34 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000424/1.503, allocations: 206.8 kB / 0.5517 GB, free: 15.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.503, allocations: 0 / 0.5517 GB, free: 15.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/1.504, allocations: 105.4 kB / 0.5518 GB, free: 15.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/1.504, allocations: 118.7 kB / 0.552 GB, free: 14.93 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/1.505, allocations: 0.5419 MB / 0.5525 GB, free: 14.37 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.658e-05/1.505, allocations: 92.81 kB / 0.5526 GB, free: 14.25 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.455e-05/1.505, allocations: 19.19 kB / 0.5526 GB, free: 14.24 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/1.505, allocations: 154.1 kB / 0.5527 GB, free: 14.09 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/1.505, allocations: 0 / 0.5527 GB, free: 14.09 MB / 490.7 MB Notification: Performance of Templates: time 0.04949/1.555, allocations: 50.35 MB / 0.6019 GB, free: 12.06 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.778738780878484]