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.7763/0.7763, allocations: 111.6 MB / 131 MB, free: 5.109 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.605e-06/2.605e-06, allocations: 0 / 175.7 MB, free: 9.523 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.02e-05/4.28e-05, allocations: 5.047 kB / 175.7 MB, free: 9.52 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.659/1.659, allocations: 254.5 MB / 430.2 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04883/1.708, allocations: 30.62 MB / 460.8 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/1.708, allocations: 8 kB / 460.8 MB, free: 1.801 MB / 410.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.0003968/1.708, allocations: 99.34 kB / 460.9 MB, free: 1.703 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/1.708, allocations: 123.1 kB / 461 MB, free: 1.582 MB / 410.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.02751/1.736, allocations: 9.81 MB / 470.8 MB, free: 7.738 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007106/1.737, allocations: 390 kB / 471.2 MB, free: 7.355 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/1.737, allocations: 112.8 kB / 471.3 MB, free: 7.246 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004357/1.737, allocations: 231.4 kB / 471.5 MB, free: 7.02 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/1.738, allocations: 91.66 kB / 471.6 MB, free: 6.93 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/1.738, allocations: 24 kB / 471.7 MB, free: 6.906 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03362/1.771, allocations: 16.79 MB / 488.4 MB, free: 6.09 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/1.771, allocations: 55.75 kB / 488.5 MB, free: 6.035 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/1.772, allocations: 91.78 kB / 488.6 MB, free: 5.945 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2083/1.98, allocations: 10.84 MB / 499.4 MB, free: 22.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/1.98, allocations: 0 / 499.4 MB, free: 22.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.98, allocations: 0 / 499.4 MB, free: 22.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.098e-06/1.98, allocations: 1.125 kB / 499.4 MB, free: 22.36 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.006161/1.986, allocations: 1.438 MB / 0.4891 GB, free: 21.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/1.986, allocations: 17.06 kB / 0.4891 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/1.986, allocations: 48.56 kB / 0.4892 GB, free: 21.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/1.986, allocations: 182 kB / 0.4894 GB, free: 21.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.143e-05/1.986, allocations: 43.77 kB / 0.4894 GB, free: 21.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/1.986, allocations: 23.75 kB / 0.4894 GB, free: 21.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/1.987, allocations: 322.5 kB / 0.4897 GB, free: 21.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.987, allocations: 0 / 0.4897 GB, free: 21.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/1.987, allocations: 11.28 kB / 0.4897 GB, free: 21.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/1.987, allocations: 15.88 kB / 0.4898 GB, free: 21.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003472/1.987, allocations: 196.8 kB / 0.4899 GB, free: 21.23 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.01761/2.005, allocations: 5.974 MB / 0.4958 GB, free: 20.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/2.005, allocations: 135 kB / 0.4959 GB, free: 20.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/2.005, allocations: 97.88 kB / 0.496 GB, free: 20.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1526/2.158, allocations: 48.48 MB / 0.5434 GB, free: 1.977 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/2.158, allocations: 192.7 kB / 0.5435 GB, free: 1.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/2.158, allocations: 0 / 0.5435 GB, free: 1.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=43): time 0.001226/2.16, allocations: 446.5 kB / 0.544 GB, free: 1.504 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/2.16, allocations: 88.84 kB / 0.544 GB, free: 1.402 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/2.16, allocations: 172.2 kB / 0.5442 GB, free: 1.246 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/2.16, allocations: 25.7 kB / 0.5442 GB, free: 1.215 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/2.16, allocations: 154.4 kB / 0.5444 GB, free: 1.078 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/2.16, allocations: 140 kB / 0.5445 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.817e-05/2.16, allocations: 59.88 kB / 0.5446 GB, free: 0.918 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/2.161, allocations: 333.9 kB / 0.5449 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/2.161, allocations: 101 kB / 0.545 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/2.161, allocations: 164.2 kB / 0.5451 GB, free: 404 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/2.162, allocations: 0.5261 MB / 0.5457 GB, free: 15.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/2.162, allocations: 0 / 0.5457 GB, free: 15.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007427/2.163, allocations: 385 kB / 0.546 GB, free: 15.72 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/2.163, allocations: 4 kB / 0.546 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/2.163, allocations: 4 kB / 0.546 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006714/2.164, allocations: 121.7 kB / 0.5461 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/2.164, allocations: 20.98 kB / 0.5462 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006428/2.165, allocations: 0.6197 MB / 0.5468 GB, free: 14.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/2.165, allocations: 33.08 kB / 0.5468 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/2.165, allocations: 11.38 kB / 0.5468 GB, free: 14.96 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.0002159/2.165, allocations: 139 kB / 0.5469 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/2.165, allocations: 27.23 kB / 0.547 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008522/2.166, allocations: 0.512 MB / 0.5475 GB, free: 14.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005643/2.167, allocations: 327.7 kB / 0.5478 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/2.167, allocations: 0 / 0.5478 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/2.167, allocations: 3.984 kB / 0.5478 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/2.168, allocations: 0.755 MB / 0.5485 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/2.168, allocations: 0 / 0.5485 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/2.168, allocations: 27.98 kB / 0.5486 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000629/2.169, allocations: 135.8 kB / 0.5487 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/2.169, allocations: 3.75 kB / 0.5487 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007872/2.169, allocations: 0.6288 MB / 0.5493 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/2.169, allocations: 0 / 0.5493 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007459/2.17, allocations: 451 kB / 0.5497 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.011e-05/2.17, allocations: 47.03 kB / 0.5498 GB, free: 12.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/2.17, allocations: 14.75 kB / 0.5498 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/2.17, allocations: 7.312 kB / 0.5498 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/2.17, allocations: 23.27 kB / 0.5498 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/2.17, allocations: 5.875 kB / 0.5498 GB, free: 12.36 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001756/2.171, allocations: 163 kB / 0.55 GB, free: 12.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/2.171, allocations: 0 / 0.55 GB, free: 12.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004554/2.175, allocations: 1.211 MB / 0.5512 GB, free: 11.1 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.007083/2.182, allocations: 1.918 MB / 0.553 GB, free: 9.473 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008751/2.183, allocations: 307.2 kB / 0.5533 GB, free: 9.203 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/2.183, allocations: 0 / 0.5533 GB, free: 9.203 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/2.184, allocations: 143 kB / 0.5535 GB, free: 9.066 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/2.184, allocations: 120.9 kB / 0.5536 GB, free: 8.957 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/2.185, allocations: 0.5651 MB / 0.5541 GB, free: 8.371 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/2.186, allocations: 171.7 kB / 0.5543 GB, free: 8.184 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 8.889e-05/2.186, allocations: 25.64 kB / 0.5543 GB, free: 8.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.671e-05/2.186, allocations: 28.48 kB / 0.5543 GB, free: 8.133 MB / 474.7 MB Notification: Performance of SimCode: time 5.41e-07/2.186, allocations: 0 / 0.5543 GB, free: 8.133 MB / 474.7 MB Notification: Performance of Templates: time 0.07051/2.256, allocations: 42.68 MB / 0.596 GB, free: 13.68 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.25745731999632]