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.5143/0.5143, allocations: 111.6 MB / 131.7 MB, free: 5.062 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.613e-06/1.613e-06, allocations: 0 / 176.4 MB, free: 9.367 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.533e-05/2.694e-05, allocations: 2.312 kB / 176.4 MB, free: 9.363 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.076/1.076, allocations: 256.9 MB / 433.4 MB, free: 404 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02862/1.105, allocations: 33.01 MB / 466.4 MB, free: 15.26 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/1.105, allocations: 4 kB / 466.4 MB, free: 15.25 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.0004249/1.105, allocations: 115.3 kB / 466.5 MB, free: 15.14 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/1.106, allocations: 119.1 kB / 466.6 MB, free: 15.02 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.01861/1.124, allocations: 9.814 MB / 476.4 MB, free: 5.176 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005485/1.125, allocations: 390 kB / 476.8 MB, free: 4.793 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/1.125, allocations: 108.8 kB / 476.9 MB, free: 4.688 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/1.125, allocations: 235.4 kB / 477.2 MB, free: 4.457 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/1.125, allocations: 87.73 kB / 477.2 MB, free: 4.371 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/1.125, allocations: 23.94 kB / 477.3 MB, free: 4.348 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02129/1.147, allocations: 16.79 MB / 494.1 MB, free: 3.527 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.506e-05/1.147, allocations: 47.78 kB / 494.1 MB, free: 3.48 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/1.147, allocations: 95.77 kB / 494.2 MB, free: 3.387 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2094/1.356, allocations: 10.75 MB / 0.4931 GB, free: 19.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/1.356, allocations: 1.219 kB / 0.4931 GB, free: 19.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.215e-06/1.356, allocations: 3.516 kB / 0.4931 GB, free: 19.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/1.356, allocations: 0 / 0.4931 GB, free: 19.73 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.006253/1.363, allocations: 1.542 MB / 0.4946 GB, free: 18.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/1.363, allocations: 13.55 kB / 0.4946 GB, free: 18.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/1.363, allocations: 46.56 kB / 0.4947 GB, free: 18.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/1.363, allocations: 189.3 kB / 0.4949 GB, free: 18.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.224e-05/1.363, allocations: 43.77 kB / 0.4949 GB, free: 18.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/1.363, allocations: 22.41 kB / 0.4949 GB, free: 18.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/1.363, allocations: 273.1 kB / 0.4952 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/1.363, allocations: 4.469 kB / 0.4952 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/1.363, allocations: 11.64 kB / 0.4952 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/1.363, allocations: 15.3 kB / 0.4952 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/1.364, allocations: 95.97 kB / 0.4953 GB, free: 18.45 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.01072/1.374, allocations: 6.266 MB / 0.5014 GB, free: 17.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/1.374, allocations: 86.23 kB / 0.5015 GB, free: 17.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.383e-05/1.374, allocations: 47.08 kB / 0.5015 GB, free: 17.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.083/1.457, allocations: 48.63 MB / 0.549 GB, free: 14.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/1.458, allocations: 158.3 kB / 0.5492 GB, free: 14.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/1.458, allocations: 0 / 0.5492 GB, free: 14.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.000615/1.458, allocations: 312.6 kB / 0.5495 GB, free: 14.33 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/1.458, allocations: 80.2 kB / 0.5496 GB, free: 14.24 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/1.459, allocations: 225.2 kB / 0.5498 GB, free: 14.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/1.459, allocations: 37.61 kB / 0.5498 GB, free: 13.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/1.459, allocations: 206.2 kB / 0.55 GB, free: 13.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.646e-05/1.459, allocations: 133.1 kB / 0.5501 GB, free: 13.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/1.459, allocations: 70.48 kB / 0.5502 GB, free: 13.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/1.459, allocations: 0.5143 MB / 0.5507 GB, free: 13.11 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.847e-05/1.459, allocations: 41.03 kB / 0.5507 GB, free: 13.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/1.459, allocations: 135.8 kB / 0.5509 GB, free: 12.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/1.459, allocations: 255.6 kB / 0.5511 GB, free: 12.69 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/1.459, allocations: 4 kB / 0.5511 GB, free: 12.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003326/1.46, allocations: 264.6 kB / 0.5514 GB, free: 12.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/1.46, allocations: 8 kB / 0.5514 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/1.46, allocations: 8.203 kB / 0.5514 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003764/1.46, allocations: 94.62 kB / 0.5515 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.544e-05/1.46, allocations: 21.38 kB / 0.5515 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003743/1.461, allocations: 0.8478 MB / 0.5523 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/1.461, allocations: 31.88 kB / 0.5524 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/1.461, allocations: 11.16 kB / 0.5524 GB, free: 11.44 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.0001404/1.461, allocations: 176 kB / 0.5525 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.05e-05/1.461, allocations: 24.61 kB / 0.5526 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004194/1.461, allocations: 438.3 kB / 0.553 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000346/1.462, allocations: 224.7 kB / 0.5532 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.462, allocations: 4 kB / 0.5532 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/1.462, allocations: 0 / 0.5532 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/1.462, allocations: 0.6975 MB / 0.5539 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/1.462, allocations: 8.672 kB / 0.5539 GB, free: 9.984 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.164e-05/1.462, allocations: 20 kB / 0.5539 GB, free: 9.965 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002639/1.463, allocations: 107.1 kB / 0.554 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/1.463, allocations: 2.688 kB / 0.554 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003098/1.463, allocations: 0.8502 MB / 0.5548 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.463, allocations: 0 / 0.5548 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003299/1.463, allocations: 400 kB / 0.5552 GB, free: 8.625 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/1.463, allocations: 46.05 kB / 0.5553 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/1.463, allocations: 3.312 kB / 0.5553 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.562e-05/1.463, allocations: 17.66 kB / 0.5553 GB, free: 8.574 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/1.463, allocations: 16.41 kB / 0.5553 GB, free: 8.562 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/1.463, allocations: 13.8 kB / 0.5553 GB, free: 8.551 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001057/1.464, allocations: 190.5 kB / 0.5555 GB, free: 8.375 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/1.464, allocations: 4.031 kB / 0.5555 GB, free: 8.371 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003852/1.467, allocations: 1.221 MB / 0.5567 GB, free: 7.23 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.00509/1.473, allocations: 1.898 MB / 0.5585 GB, free: 5.617 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0004746/1.473, allocations: 229.8 kB / 0.5588 GB, free: 5.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/1.473, allocations: 0 / 0.5588 GB, free: 5.41 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/1.473, allocations: 121.5 kB / 0.5589 GB, free: 5.305 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/1.474, allocations: 120.7 kB / 0.559 GB, free: 5.207 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/1.475, allocations: 0.5473 MB / 0.5595 GB, free: 4.676 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6e-05/1.475, allocations: 96.8 kB / 0.5596 GB, free: 4.559 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 8.097e-05/1.475, allocations: 21.64 kB / 0.5596 GB, free: 4.539 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/1.475, allocations: 24.5 kB / 0.5597 GB, free: 4.516 MB / 474.7 MB Notification: Performance of SimCode: time 1.213e-06/1.475, allocations: 0 / 0.5597 GB, free: 4.516 MB / 474.7 MB Notification: Performance of Templates: time 0.04362/1.518, allocations: 43.38 MB / 0.602 GB, free: 9.461 MB / 0.5105 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.245729376096278]