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.8715/0.8715, allocations: 120.4 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.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.004e-06/2.004e-06, allocations: 0 / 217.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.462e-05, allocations: 6.281 kB / 217.1 MB, free: 13.79 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.TestCheckValve): time 1.59/1.59, allocations: 254.3 MB / 471.4 MB, free: 10.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.253/1.843, allocations: 30.58 MB / 0.4902 GB, free: 7.875 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/1.844, allocations: 1.625 kB / 0.4902 GB, free: 7.875 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/CheckValve.mo:38:3-39:49: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:40:3-41:47: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.0003959/1.844, allocations: 109.4 kB / 0.4903 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/1.844, allocations: 126.6 kB / 0.4905 GB, free: 7.699 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.02939/1.874, allocations: 9.783 MB / 0.5 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000677/1.874, allocations: 387.5 kB / 0.5004 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/1.875, allocations: 106.3 kB / 0.5005 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/1.875, allocations: 225.3 kB / 0.5007 GB, free: 476 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/1.875, allocations: 91.72 kB / 0.5008 GB, free: 384 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/1.875, allocations: 20 kB / 0.5008 GB, free: 364 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03419/1.909, allocations: 16.79 MB / 0.5172 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.689e-05/1.909, allocations: 53.02 kB / 0.5173 GB, free: 15.51 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/1.91, allocations: 97.86 kB / 0.5173 GB, free: 15.42 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02663/1.936, allocations: 10.83 MB / 0.5279 GB, free: 4.559 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/1.936, allocations: 0 / 0.5279 GB, free: 4.559 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.843e-06/1.936, allocations: 0 / 0.5279 GB, free: 4.559 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/1.936, allocations: 0 / 0.5279 GB, free: 4.559 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004673/1.941, allocations: 1.436 MB / 0.5293 GB, free: 3.086 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.941, allocations: 10.16 kB / 0.5293 GB, free: 3.078 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/1.941, allocations: 39.75 kB / 0.5294 GB, free: 3.039 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/1.941, allocations: 180.7 kB / 0.5295 GB, free: 2.836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/1.941, allocations: 42.2 kB / 0.5296 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/1.941, allocations: 25.23 kB / 0.5296 GB, free: 2.766 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006097/1.942, allocations: 323 kB / 0.5299 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/1.942, allocations: 2.844 kB / 0.5299 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/1.942, allocations: 12.66 kB / 0.5299 GB, free: 2.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/1.942, allocations: 11.98 kB / 0.5299 GB, free: 2.398 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004098/1.943, allocations: 192.5 kB / 0.5301 GB, free: 2.211 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.02088/1.963, allocations: 5.962 MB / 0.5359 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/1.964, allocations: 144.8 kB / 0.5361 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/1.964, allocations: 101.1 kB / 0.5362 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1845/2.149, allocations: 48.41 MB / 0.5835 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/2.149, allocations: 193.5 kB / 0.5836 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=43): time 2.114e-06/2.149, allocations: 3.938 kB / 0.5836 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=43): time 0.001246/2.15, allocations: 444.3 kB / 0.5841 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/2.15, allocations: 89.02 kB / 0.5842 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/2.151, allocations: 170.4 kB / 0.5843 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/2.151, allocations: 33.7 kB / 0.5843 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/2.151, allocations: 152.7 kB / 0.5845 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/2.151, allocations: 134.8 kB / 0.5846 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/2.151, allocations: 61.69 kB / 0.5847 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001702/2.151, allocations: 330.8 kB / 0.585 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/2.151, allocations: 97.02 kB / 0.5851 GB, free: 9.852 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/2.152, allocations: 173.8 kB / 0.5853 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/2.153, allocations: 0.5217 MB / 0.5858 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/2.153, allocations: 3.938 kB / 0.5858 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007919/2.154, allocations: 359.6 kB / 0.5861 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/2.154, allocations: 10.16 kB / 0.5861 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/2.154, allocations: 3.938 kB / 0.5861 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/2.155, allocations: 129.4 kB / 0.5862 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/2.155, allocations: 23.98 kB / 0.5863 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006234/2.155, allocations: 0.6086 MB / 0.5869 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/2.156, allocations: 35.77 kB / 0.5869 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/2.156, allocations: 8 kB / 0.5869 GB, free: 7.914 MB / 0.5294 GB 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.0002301/2.156, allocations: 150.7 kB / 0.587 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/2.156, allocations: 28.66 kB / 0.5871 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000872/2.157, allocations: 0.4903 MB / 0.5876 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005847/2.157, allocations: 330.2 kB / 0.5879 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/2.157, allocations: 0.875 kB / 0.5879 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/2.157, allocations: 3.984 kB / 0.5879 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/2.159, allocations: 0.7498 MB / 0.5886 GB, free: 6.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/2.159, allocations: 8 kB / 0.5886 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/2.159, allocations: 23.98 kB / 0.5886 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000648/2.159, allocations: 133.4 kB / 0.5888 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/2.159, allocations: 1.188 kB / 0.5888 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005496/2.16, allocations: 0.6353 MB / 0.5894 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/2.16, allocations: 4 kB / 0.5894 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/2.161, allocations: 447.9 kB / 0.5898 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/2.161, allocations: 35.72 kB / 0.5899 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/2.161, allocations: 8 kB / 0.5899 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/2.161, allocations: 11.98 kB / 0.5899 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/2.161, allocations: 23.95 kB / 0.5899 GB, free: 4.715 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/2.161, allocations: 11.94 kB / 0.5899 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001818/2.161, allocations: 159.2 kB / 0.5901 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/2.161, allocations: 4.062 kB / 0.5901 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003174/2.164, allocations: 1.224 MB / 0.5913 GB, free: 3.316 MB / 0.5294 GB 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.006214/2.171, allocations: 1.909 MB / 0.5931 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008342/2.172, allocations: 310.2 kB / 0.5934 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/2.172, allocations: 0 / 0.5934 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003704/2.172, allocations: 134.3 kB / 0.5935 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007961/2.173, allocations: 116.1 kB / 0.5937 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/2.174, allocations: 0.5584 MB / 0.5942 GB, free: 296 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/2.174, allocations: 177.3 kB / 0.5944 GB, free: 100 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.965e-05/2.174, allocations: 19.38 kB / 0.5944 GB, free: 76 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.059e-05/2.174, allocations: 24.5 kB / 0.5944 GB, free: 52 kB / 0.5294 GB Notification: Performance of SimCode: time 4.91e-07/2.174, allocations: 0 / 0.5944 GB, free: 52 kB / 0.5294 GB Notification: Performance of Templates: time 0.06619/2.24, allocations: 42.43 MB / 0.6358 GB, free: 5.883 MB / 0.5762 GB " [Timeout remaining time 657] 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.435926228761673] Failed to read output from testmodel.py, exit status != 0: 2.609183046966791 2.618983668 0.6803038170000001 Calling exit ...