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.5467/0.5467, allocations: 111.6 MB / 131.5 MB, free: 4.91 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.926e-06/2.926e-06, allocations: 0 / 176.5 MB, free: 9.023 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.64e-05, allocations: 9.703 kB / 176.6 MB, free: 9.016 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.203/1.203, allocations: 262.8 MB / 439.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0326/1.236, allocations: 33.01 MB / 472.4 MB, free: 13.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/1.236, allocations: 4 kB / 472.4 MB, free: 13.92 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.0003952/1.237, allocations: 111.3 kB / 472.5 MB, free: 13.81 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002388/1.237, allocations: 127 kB / 472.6 MB, free: 13.69 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.02136/1.258, allocations: 9.888 MB / 482.5 MB, free: 3.754 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000612/1.259, allocations: 390 kB / 482.9 MB, free: 3.371 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/1.259, allocations: 114.7 kB / 483 MB, free: 3.258 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003545/1.26, allocations: 239.3 kB / 483.2 MB, free: 3.023 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/1.26, allocations: 87.72 kB / 483.3 MB, free: 2.938 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/1.26, allocations: 20 kB / 483.3 MB, free: 2.918 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2345/1.494, allocations: 16.78 MB / 0.4884 GB, free: 8.152 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/1.494, allocations: 49.53 kB / 0.4885 GB, free: 8.152 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002535/1.495, allocations: 96.97 kB / 0.4885 GB, free: 8.152 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02169/1.516, allocations: 10.75 MB / 0.499 GB, free: 3.781 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/1.516, allocations: 8.031 kB / 0.499 GB, free: 3.777 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/1.516, allocations: 0 / 0.499 GB, free: 3.777 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/1.516, allocations: 0.7188 kB / 0.4991 GB, free: 3.777 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.0044/1.521, allocations: 1.414 MB / 0.5004 GB, free: 2.824 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/1.521, allocations: 17.98 kB / 0.5004 GB, free: 2.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.002e-05/1.521, allocations: 36.34 kB / 0.5005 GB, free: 2.805 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/1.521, allocations: 158.6 kB / 0.5006 GB, free: 2.656 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/1.521, allocations: 43.39 kB / 0.5007 GB, free: 2.617 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/1.521, allocations: 28.7 kB / 0.5007 GB, free: 2.609 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/1.521, allocations: 246.7 kB / 0.5009 GB, free: 2.441 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/1.521, allocations: 0 / 0.5009 GB, free: 2.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/1.521, allocations: 9.594 kB / 0.5009 GB, free: 2.434 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/1.521, allocations: 17.11 kB / 0.501 GB, free: 2.426 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.464e-05/1.521, allocations: 76.08 kB / 0.501 GB, free: 2.414 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.00786/1.529, allocations: 5.069 MB / 0.506 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/1.529, allocations: 108.3 kB / 0.5061 GB, free: 336 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/1.529, allocations: 34.89 kB / 0.5061 GB, free: 324 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07672/1.606, allocations: 43.16 MB / 0.5483 GB, free: 5.371 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/1.606, allocations: 141.9 kB / 0.5484 GB, free: 5.227 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/1.606, allocations: 0 / 0.5484 GB, free: 5.227 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.0004769/1.607, allocations: 236.5 kB / 0.5486 GB, free: 4.992 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/1.607, allocations: 85.14 kB / 0.5487 GB, free: 4.891 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/1.607, allocations: 172.9 kB / 0.5489 GB, free: 4.727 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/1.607, allocations: 25.7 kB / 0.5489 GB, free: 4.695 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.635e-05/1.607, allocations: 150.5 kB / 0.549 GB, free: 4.551 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/1.607, allocations: 138.1 kB / 0.5492 GB, free: 4.426 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.385e-05/1.607, allocations: 71.39 kB / 0.5492 GB, free: 4.367 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.84e-05/1.607, allocations: 336.1 kB / 0.5496 GB, free: 4.039 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.914e-05/1.607, allocations: 27.33 kB / 0.5496 GB, free: 4.012 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/1.608, allocations: 95.14 kB / 0.5497 GB, free: 3.906 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/1.608, allocations: 213.7 kB / 0.5499 GB, free: 3.691 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/1.608, allocations: 3.938 kB / 0.5499 GB, free: 3.688 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005583/1.608, allocations: 209.3 kB / 0.5501 GB, free: 3.488 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/1.608, allocations: 4 kB / 0.5501 GB, free: 3.484 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/1.608, allocations: 4 kB / 0.5501 GB, free: 3.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/1.609, allocations: 67.84 kB / 0.5502 GB, free: 3.414 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.191e-05/1.609, allocations: 19.95 kB / 0.5502 GB, free: 3.398 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002935/1.609, allocations: 0.5629 MB / 0.5507 GB, free: 2.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.848e-05/1.609, allocations: 28.7 kB / 0.5508 GB, free: 2.793 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/1.609, allocations: 12 kB / 0.5508 GB, free: 2.781 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.0001278/1.609, allocations: 126.4 kB / 0.5509 GB, free: 2.652 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/1.609, allocations: 16.73 kB / 0.5509 GB, free: 2.637 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003295/1.61, allocations: 333.3 kB / 0.5512 GB, free: 2.285 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/1.61, allocations: 172.1 kB / 0.5514 GB, free: 2.113 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/1.61, allocations: 4 kB / 0.5514 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.61, allocations: 3.984 kB / 0.5514 GB, free: 2.105 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005658/1.61, allocations: 0.5473 MB / 0.5519 GB, free: 1.562 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.61, allocations: 0.5625 kB / 0.5519 GB, free: 1.562 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.386e-05/1.61, allocations: 31.36 kB / 0.552 GB, free: 1.535 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002222/1.61, allocations: 80.08 kB / 0.552 GB, free: 1.457 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/1.611, allocations: 8.609 kB / 0.552 GB, free: 1.449 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000241/1.611, allocations: 0.5638 MB / 0.5526 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/1.611, allocations: 0 / 0.5526 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/1.611, allocations: 331.8 kB / 0.5529 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/1.611, allocations: 27.7 kB / 0.5529 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/1.611, allocations: 16.42 kB / 0.553 GB, free: 500 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.804e-05/1.611, allocations: 8 kB / 0.553 GB, free: 492 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/1.611, allocations: 23.95 kB / 0.553 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/1.611, allocations: 4.031 kB / 0.553 GB, free: 464 kB / 474.7 MB Notification: Performance of sorting global known variables: time 5e-05/1.611, allocations: 67.5 kB / 0.5531 GB, free: 396 kB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/1.611, allocations: 0 / 0.5531 GB, free: 396 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.002962/1.614, allocations: 1.216 MB / 0.5542 GB, free: 15.17 MB / 490.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.004499/1.619, allocations: 2.055 MB / 0.5562 GB, free: 13.35 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003951/1.619, allocations: 189.4 kB / 0.5564 GB, free: 13.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.619, allocations: 4 kB / 0.5564 GB, free: 13.16 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/1.619, allocations: 87.38 kB / 0.5565 GB, free: 13.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/1.62, allocations: 117.7 kB / 0.5566 GB, free: 12.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009579/1.621, allocations: 0.5562 MB / 0.5572 GB, free: 12.41 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.947e-05/1.621, allocations: 100.8 kB / 0.5573 GB, free: 12.29 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.384e-05/1.621, allocations: 23.97 kB / 0.5573 GB, free: 12.27 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/1.621, allocations: 122.3 kB / 0.5574 GB, free: 12.15 MB / 490.7 MB Notification: Performance of SimCode: time 9.42e-07/1.621, allocations: 0 / 0.5574 GB, free: 12.15 MB / 490.7 MB Notification: Performance of Templates: time 0.06691/1.688, allocations: 49.49 MB / 0.6057 GB, free: 10.94 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.649820311926305]