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.4701/0.4701, allocations: 111.6 MB / 131.2 MB, free: 4.617 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 1.633e-06/1.633e-06, allocations: 0 / 176.1 MB, free: 9.258 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.329e-05/1.492e-05, allocations: 2.312 kB / 176.1 MB, free: 9.254 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 0.9994/0.9994, allocations: 257 MB / 433.2 MB, free: 15.98 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02725/1.027, allocations: 33.12 MB / 466.3 MB, free: 14.74 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/1.027, allocations: 0 / 466.3 MB, free: 14.74 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.0002886/1.027, allocations: 107.4 kB / 466.4 MB, free: 14.64 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/1.027, allocations: 127 kB / 466.5 MB, free: 14.51 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.01575/1.043, allocations: 9.807 MB / 476.3 MB, free: 4.66 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003683/1.043, allocations: 386.1 kB / 476.7 MB, free: 4.281 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/1.044, allocations: 116.8 kB / 476.8 MB, free: 4.164 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/1.044, allocations: 239.2 kB / 477 MB, free: 3.93 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.885e-05/1.044, allocations: 87.73 kB / 477.1 MB, free: 3.844 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/1.044, allocations: 20 kB / 477.1 MB, free: 3.824 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2037/1.248, allocations: 16.78 MB / 493.9 MB, free: 8.625 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 7.888e-05/1.248, allocations: 49.41 kB / 494 MB, free: 8.625 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/1.248, allocations: 100.3 kB / 494.1 MB, free: 8.625 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01469/1.263, allocations: 10.75 MB / 0.493 GB, free: 4.902 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.263, allocations: 0 / 0.493 GB, free: 4.902 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.263, allocations: 1.812 kB / 0.493 GB, free: 4.902 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.226e-06/1.263, allocations: 0 / 0.493 GB, free: 4.902 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.002724/1.265, allocations: 1.542 MB / 0.4945 GB, free: 3.793 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/1.265, allocations: 15.98 kB / 0.4945 GB, free: 3.789 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.231e-05/1.265, allocations: 50.03 kB / 0.4946 GB, free: 3.766 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/1.266, allocations: 190.7 kB / 0.4947 GB, free: 3.586 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.878e-05/1.266, allocations: 44.52 kB / 0.4948 GB, free: 3.547 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/1.266, allocations: 21.38 kB / 0.4948 GB, free: 3.539 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/1.266, allocations: 277.8 kB / 0.4951 GB, free: 3.332 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/1.266, allocations: 3.094 kB / 0.4951 GB, free: 3.332 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/1.266, allocations: 10.12 kB / 0.4951 GB, free: 3.324 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/1.266, allocations: 14.48 kB / 0.4951 GB, free: 3.316 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/1.266, allocations: 104.2 kB / 0.4952 GB, free: 3.293 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.008243/1.274, allocations: 6.263 MB / 0.5013 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/1.274, allocations: 79.16 kB / 0.5014 GB, free: 344 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.331e-05/1.274, allocations: 54.16 kB / 0.5014 GB, free: 320 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07774/1.352, allocations: 48.63 MB / 0.5489 GB, free: 300 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/1.352, allocations: 155.5 kB / 0.5491 GB, free: 124 kB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 2.384e-06/1.352, allocations: 0.9844 kB / 0.5491 GB, free: 124 kB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005808/1.353, allocations: 296.1 kB / 0.5494 GB, free: 15.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/1.353, allocations: 84.95 kB / 0.5494 GB, free: 15.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/1.353, allocations: 238.6 kB / 0.5497 GB, free: 15.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/1.353, allocations: 29.7 kB / 0.5497 GB, free: 15.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/1.353, allocations: 197.7 kB / 0.5499 GB, free: 15.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.701e-05/1.353, allocations: 144 kB / 0.55 GB, free: 15.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.268e-05/1.353, allocations: 67.3 kB / 0.5501 GB, free: 15.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/1.354, allocations: 0.5117 MB / 0.5506 GB, free: 14.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.894e-05/1.354, allocations: 40.47 kB / 0.5506 GB, free: 14.47 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.562e-05/1.354, allocations: 136.5 kB / 0.5508 GB, free: 14.31 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/1.354, allocations: 255.2 kB / 0.551 GB, free: 14.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/1.354, allocations: 0 / 0.551 GB, free: 14.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003017/1.354, allocations: 274.3 kB / 0.5513 GB, free: 13.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/1.354, allocations: 4.219 kB / 0.5513 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/1.354, allocations: 8 kB / 0.5513 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/1.355, allocations: 71.62 kB / 0.5513 GB, free: 13.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.343e-05/1.355, allocations: 27.08 kB / 0.5514 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004161/1.355, allocations: 0.8519 MB / 0.5522 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/1.355, allocations: 27.78 kB / 0.5522 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/1.355, allocations: 16.02 kB / 0.5522 GB, free: 12.74 MB / 490.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.0001269/1.355, allocations: 173.2 kB / 0.5524 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/1.355, allocations: 23.86 kB / 0.5524 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/1.356, allocations: 432.3 kB / 0.5528 GB, free: 12.06 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001987/1.356, allocations: 224.8 kB / 0.5531 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/1.356, allocations: 0 / 0.5531 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.356, allocations: 8.922 kB / 0.5531 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006254/1.357, allocations: 0.7041 MB / 0.5537 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.357, allocations: 0.5 kB / 0.5537 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.623e-05/1.357, allocations: 27.55 kB / 0.5538 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/1.357, allocations: 83.55 kB / 0.5539 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/1.357, allocations: 8.625 kB / 0.5539 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002764/1.357, allocations: 0.8405 MB / 0.5547 GB, free: 10.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.357, allocations: 5.125 kB / 0.5547 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/1.357, allocations: 402.9 kB / 0.5551 GB, free: 9.688 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/1.357, allocations: 47.61 kB / 0.5551 GB, free: 9.641 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/1.358, allocations: 8.688 kB / 0.5551 GB, free: 9.633 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.242e-05/1.358, allocations: 7.984 kB / 0.5551 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/1.358, allocations: 23.95 kB / 0.5552 GB, free: 9.602 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/1.358, allocations: 8 kB / 0.5552 GB, free: 9.594 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.137e-05/1.358, allocations: 190.7 kB / 0.5553 GB, free: 9.406 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/1.358, allocations: 8 kB / 0.5554 GB, free: 9.398 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002223/1.36, allocations: 1.216 MB / 0.5565 GB, free: 8.18 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.003071/1.363, allocations: 1.909 MB / 0.5584 GB, free: 6.504 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000378/1.363, allocations: 225.2 kB / 0.5586 GB, free: 6.281 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/1.363, allocations: 0.8906 kB / 0.5586 GB, free: 6.281 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/1.364, allocations: 115.2 kB / 0.5587 GB, free: 6.168 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/1.364, allocations: 130 kB / 0.5589 GB, free: 6.051 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/1.365, allocations: 0.5381 MB / 0.5594 GB, free: 5.492 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.53e-05/1.365, allocations: 100.8 kB / 0.5595 GB, free: 5.371 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.168e-05/1.365, allocations: 23 kB / 0.5595 GB, free: 5.352 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/1.365, allocations: 20.5 kB / 0.5595 GB, free: 5.332 MB / 490.7 MB Notification: Performance of SimCode: time 7.42e-07/1.365, allocations: 0 / 0.5595 GB, free: 5.332 MB / 490.7 MB Notification: Performance of Templates: time 0.04568/1.411, allocations: 53.45 MB / 0.6117 GB, free: 188 kB / 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.6941251321695745]