Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8733/0.8733, allocations: 152.6 MB / 170.1 MB, free: 14.44 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005093/0.0005093, allocations: 18 kB / 246.7 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06131/0.06182, allocations: 33.06 MB / 279.8 MB, free: 15.9 MB / 238.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.734/1.796, allocations: 301.2 MB / 0.5673 GB, free: 1.926 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04535/1.841, allocations: 35.04 MB / 0.6015 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/1.841, allocations: 0 / 0.6015 GB, free: 14.74 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004847/1.842, allocations: 156.9 kB / 0.6017 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/1.842, allocations: 146.9 kB / 0.6018 GB, free: 14.45 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783: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 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850: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 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088: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 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69: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 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69: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 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49: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 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49: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.02532/1.867, allocations: 9.98 MB / 0.6116 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/1.868, allocations: 454.6 kB / 0.612 GB, free: 4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002585/1.868, allocations: 128.6 kB / 0.6121 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/1.869, allocations: 191.2 kB / 0.6123 GB, free: 3.691 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/1.869, allocations: 171.2 kB / 0.6125 GB, free: 3.523 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/1.869, allocations: 24 kB / 0.6125 GB, free: 3.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.033/1.902, allocations: 17.9 MB / 0.63 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001532/1.902, allocations: 71.69 kB / 0.63 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002583/1.902, allocations: 179 kB / 0.6302 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01878/1.921, allocations: 8.505 MB / 0.6385 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/1.921, allocations: 4 kB / 0.6385 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.763e-06/1.921, allocations: 4 kB / 0.6385 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.304e-06/1.921, allocations: 0 / 0.6385 GB, free: 8.793 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004214/1.925, allocations: 1.599 MB / 0.6401 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/1.925, allocations: 11.89 kB / 0.6401 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/1.926, allocations: 47.66 kB / 0.6402 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/1.926, allocations: 270.4 kB / 0.6404 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.097e-05/1.926, allocations: 46.2 kB / 0.6405 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/1.926, allocations: 24 kB / 0.6405 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/1.927, allocations: 354.7 kB / 0.6408 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/1.927, allocations: 4 kB / 0.6408 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/1.927, allocations: 12 kB / 0.6408 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/1.927, allocations: 15.98 kB / 0.6408 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/1.927, allocations: 225.7 kB / 0.6411 GB, free: 6.074 MB / 0.5137 GB 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.02177/1.949, allocations: 10.04 MB / 0.6509 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/1.95, allocations: 250.8 kB / 0.6511 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/1.95, allocations: 123.1 kB / 0.6512 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3609/2.311, allocations: 85.98 MB / 0.7352 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/2.311, allocations: 221.8 kB / 0.7354 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.854e-06/2.311, allocations: 0.5469 kB / 0.7354 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001141/2.312, allocations: 0.5699 MB / 0.736 GB, free: 210 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/2.312, allocations: 77.67 kB / 0.736 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/2.312, allocations: 260.5 kB / 0.7363 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/2.312, allocations: 31.83 kB / 0.7363 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/2.312, allocations: 166.2 kB / 0.7365 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/2.313, allocations: 164.7 kB / 0.7366 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/2.313, allocations: 66.66 kB / 0.7367 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.66e-05/2.313, allocations: 350 kB / 0.737 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/2.313, allocations: 109 kB / 0.7371 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/2.313, allocations: 160.8 kB / 0.7373 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003437/2.313, allocations: 283.6 kB / 0.7375 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/2.313, allocations: 4 kB / 0.7376 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007208/2.314, allocations: 431.9 kB / 0.738 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/2.314, allocations: 5.781 kB / 0.738 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/2.314, allocations: 2.656 kB / 0.738 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009647/2.315, allocations: 194.9 kB / 0.7382 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/2.315, allocations: 33.75 kB / 0.7382 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/2.317, allocations: 2.417 MB / 0.7406 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/2.317, allocations: 41.58 kB / 0.7406 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/2.317, allocations: 17.34 kB / 0.7406 GB, free: 206.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001231/2.317, allocations: 155.6 kB / 0.7408 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/2.317, allocations: 31.67 kB / 0.7408 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006579/2.318, allocations: 0.543 MB / 0.7413 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004416/2.318, allocations: 364.3 kB / 0.7417 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/2.318, allocations: 0 / 0.7417 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/2.318, allocations: 1.562 kB / 0.7417 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/2.32, allocations: 0.9687 MB / 0.7426 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/2.32, allocations: 0.8438 kB / 0.7426 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/2.32, allocations: 64.59 kB / 0.7427 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003078/2.32, allocations: 98.14 kB / 0.7428 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/2.32, allocations: 16.28 kB / 0.7428 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003869/2.321, allocations: 0.6314 MB / 0.7434 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/2.321, allocations: 7.906 kB / 0.7434 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/2.321, allocations: 0.6498 MB / 0.744 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.357e-05/2.321, allocations: 130.7 kB / 0.7442 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/2.322, allocations: 21.97 kB / 0.7442 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/2.322, allocations: 20.77 kB / 0.7442 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.979e-05/2.322, allocations: 30.89 kB / 0.7442 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/2.322, allocations: 7.938 kB / 0.7442 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001648/2.322, allocations: 221.5 kB / 0.7445 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.1e-08/2.322, allocations: 0 / 0.7445 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002495/2.324, allocations: 1.222 MB / 0.7456 GB, free: 204.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003812/2.328, allocations: 1.758 MB / 0.7474 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000825/2.329, allocations: 466.9 kB / 0.7478 GB, free: 204 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/2.329, allocations: 3.906 kB / 0.7478 GB, free: 204 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003609/2.329, allocations: 171.7 kB / 0.748 GB, free: 204 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/2.33, allocations: 132.8 kB / 0.7481 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/2.331, allocations: 0.8776 MB / 0.749 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/2.332, allocations: 0.8087 MB / 0.7498 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001238/2.332, allocations: 36.75 kB / 0.7498 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/2.332, allocations: 32.09 kB / 0.7498 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of SimCode: time 5.21e-07/2.332, allocations: 3.938 kB / 0.7498 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.04194/2.374, allocations: 44.39 MB / 0.7932 GB, free: 159.5 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 14.206550597213209]