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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8513/0.8513, allocations: 120.3 MB / 139.5 MB, free: 488 kB / 126.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 2.484e-06/2.484e-06, allocations: 0 / 217.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.683e-05/2.932e-05, allocations: 2.281 kB / 217.1 MB, free: 13.78 MB / 206.1 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.TestDynamicCheckValve): time 1.529/1.529, allocations: 254.4 MB / 471.6 MB, free: 10.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2502/1.779, allocations: 30.88 MB / 0.4907 GB, free: 7.562 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002828/1.78, allocations: 8.062 kB / 0.4907 GB, free: 7.559 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0004871/1.78, allocations: 122.3 kB / 0.4908 GB, free: 7.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004635/1.781, allocations: 161.9 kB / 0.4909 GB, free: 7.348 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02983/1.81, allocations: 9.948 MB / 0.5007 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008469/1.811, allocations: 474.4 kB / 0.5011 GB, free: 68 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/1.812, allocations: 128.6 kB / 0.5012 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004789/1.812, allocations: 279.2 kB / 0.5015 GB, free: 15.67 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/1.812, allocations: 133.2 kB / 0.5016 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/1.812, allocations: 24 kB / 0.5016 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03318/1.846, allocations: 16.8 MB / 0.5181 GB, free: 14.72 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/1.846, allocations: 67.75 kB / 0.5181 GB, free: 14.65 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/1.846, allocations: 116.4 kB / 0.5182 GB, free: 14.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03206/1.878, allocations: 10.9 MB / 0.5289 GB, free: 3.613 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/1.878, allocations: 1.344 kB / 0.5289 GB, free: 3.613 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.462e-06/1.878, allocations: 0 / 0.5289 GB, free: 3.613 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.952e-05/1.878, allocations: 0 / 0.5289 GB, free: 3.613 MB / 478.1 MB 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.006728/1.885, allocations: 1.563 MB / 0.5304 GB, free: 2.012 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/1.885, allocations: 8.031 kB / 0.5304 GB, free: 2.004 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/1.885, allocations: 48.41 kB / 0.5305 GB, free: 1.957 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/1.886, allocations: 204.5 kB / 0.5307 GB, free: 1.73 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/1.886, allocations: 69.92 kB / 0.5307 GB, free: 1.652 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.027e-05/1.886, allocations: 27.98 kB / 0.5307 GB, free: 1.625 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009205/1.887, allocations: 358.4 kB / 0.5311 GB, free: 1.246 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/1.887, allocations: 5.531 kB / 0.5311 GB, free: 1.242 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.531e-05/1.887, allocations: 8 kB / 0.5311 GB, free: 1.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.804e-05/1.887, allocations: 16.55 kB / 0.5311 GB, free: 1.219 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006976/1.888, allocations: 227.6 kB / 0.5313 GB, free: 1 MB / 478.1 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.03112/1.919, allocations: 6.025 MB / 0.5372 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/1.92, allocations: 243.7 kB / 0.5375 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/1.92, allocations: 121.2 kB / 0.5376 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1826/2.103, allocations: 48.42 MB / 0.5848 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004731/2.103, allocations: 229.7 kB / 0.5851 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=48): time 1.854e-06/2.103, allocations: 0 / 0.5851 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48): time 0.001267/2.104, allocations: 495.6 kB / 0.5855 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/2.104, allocations: 81.11 kB / 0.5856 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/2.105, allocations: 225.7 kB / 0.5858 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/2.105, allocations: 29.7 kB / 0.5859 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/2.105, allocations: 165 kB / 0.586 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/2.105, allocations: 162.5 kB / 0.5862 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/2.105, allocations: 66.66 kB / 0.5862 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001672/2.105, allocations: 338.8 kB / 0.5866 GB, free: 8.363 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/2.105, allocations: 112.7 kB / 0.5867 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/2.106, allocations: 175.7 kB / 0.5868 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004954/2.106, allocations: 288.2 kB / 0.5871 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.106, allocations: 0 / 0.5871 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009373/2.107, allocations: 428 kB / 0.5875 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/2.107, allocations: 8 kB / 0.5875 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/2.107, allocations: 2.625 kB / 0.5875 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/2.108, allocations: 203.2 kB / 0.5877 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/2.108, allocations: 23.92 kB / 0.5877 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/2.111, allocations: 2.29 MB / 0.59 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/2.111, allocations: 47.67 kB / 0.59 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/2.111, allocations: 12.94 kB / 0.59 GB, free: 4.633 MB / 0.5294 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.0001998/2.112, allocations: 143.1 kB / 0.5902 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/2.112, allocations: 28.61 kB / 0.5902 GB, free: 4.457 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009408/2.113, allocations: 0.5818 MB / 0.5908 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005998/2.113, allocations: 355.4 kB / 0.5911 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/2.113, allocations: 3.938 kB / 0.5911 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/2.113, allocations: 4.609 kB / 0.5911 GB, free: 3.473 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/2.115, allocations: 0.8571 MB / 0.592 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.115, allocations: 4 kB / 0.592 GB, free: 2.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/2.115, allocations: 63.91 kB / 0.592 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000389/2.115, allocations: 109.4 kB / 0.5921 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/2.115, allocations: 8 kB / 0.5921 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005934/2.116, allocations: 0.6396 MB / 0.5928 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/2.116, allocations: 4.062 kB / 0.5928 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/2.117, allocations: 0.6492 MB / 0.5934 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/2.117, allocations: 53.03 kB / 0.5934 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/2.117, allocations: 15.89 kB / 0.5935 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/2.117, allocations: 15.98 kB / 0.5935 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/2.118, allocations: 35.88 kB / 0.5935 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/2.118, allocations: 8 kB / 0.5935 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000222/2.118, allocations: 201.3 kB / 0.5937 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/2.118, allocations: 4 kB / 0.5937 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003774/2.122, allocations: 1.239 MB / 0.5949 GB, free: 15.49 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * 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.005997/2.128, allocations: 1.896 MB / 0.5968 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001301/2.129, allocations: 488 kB / 0.5972 GB, free: 13.11 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/2.129, allocations: 0 / 0.5972 GB, free: 13.11 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0004758/2.129, allocations: 173.7 kB / 0.5974 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008391/2.13, allocations: 126.6 kB / 0.5975 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/2.132, allocations: 0.782 MB / 0.5983 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/2.132, allocations: 204.1 kB / 0.5985 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000123/2.132, allocations: 27.27 kB / 0.5985 GB, free: 11.78 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/2.132, allocations: 28.5 kB / 0.5985 GB, free: 11.75 MB / 0.545 GB Notification: Performance of SimCode: time 5.31e-07/2.132, allocations: 0 / 0.5985 GB, free: 11.75 MB / 0.545 GB Notification: Performance of Templates: time 0.06817/2.2, allocations: 43.87 MB / 0.6414 GB, free: 176 kB / 0.5762 GB " [Timeout remaining time 657] 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.402818597853184] Failed to read output from testmodel.py, exit status != 0: 2.56484442204237 2.575216026 0.6945344290000001 Calling exit ...