Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.786/0.786, allocations: 152.6 MB / 169.6 MB, free: 14.95 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.000467/0.000467, allocations: 14.47 kB / 245.6 MB, free: 15.64 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05229/0.05276, allocations: 33.06 MB / 278.6 MB, free: 0.6758 MB / 222.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.561/1.613, allocations: 301.2 MB / 0.5662 GB, free: 2.559 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4516/2.065, allocations: 188.3 MB / 0.7501 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/2.065, allocations: 7.656 kB / 0.7501 GB, free: 15.26 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002106/2.065, allocations: 92.2 kB / 0.7502 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002402/2.066, allocations: 172.6 kB / 0.7504 GB, free: 15.25 MB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.02644/2.092, allocations: 11.7 MB / 0.7618 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004836/2.092, allocations: 422.4 kB / 0.7622 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/2.093, allocations: 177.1 kB / 0.7624 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/2.093, allocations: 177.4 kB / 0.7626 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/2.093, allocations: 232.8 kB / 0.7628 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/2.093, allocations: 35.75 kB / 0.7628 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03243/2.126, allocations: 20.02 MB / 0.7824 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001757/2.126, allocations: 102.3 kB / 0.7825 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002491/2.126, allocations: 208.4 kB / 0.7827 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02266/2.149, allocations: 9.869 MB / 0.7923 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/2.149, allocations: 0 / 0.7923 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.442e-06/2.149, allocations: 0 / 0.7923 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.626e-06/2.149, allocations: 3.938 kB / 0.7923 GB, free: 1.789 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004625/2.153, allocations: 1.916 MB / 0.7942 GB, free: 424 kB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/2.153, allocations: 15.11 kB / 0.7942 GB, free: 420 kB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/2.153, allocations: 52.83 kB / 0.7942 GB, free: 392 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/2.154, allocations: 356.9 kB / 0.7946 GB, free: 36 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/2.154, allocations: 29 kB / 0.7946 GB, free: 4 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.545e-05/2.154, allocations: 33.14 kB / 0.7946 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/2.155, allocations: 380.7 kB / 0.795 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/2.155, allocations: 0 / 0.795 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/2.155, allocations: 16 kB / 0.795 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/2.155, allocations: 8 kB / 0.795 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/2.155, allocations: 270 kB / 0.7953 GB, free: 15.29 MB / 0.6075 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.008814/2.164, allocations: 6.212 MB / 0.8014 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/2.164, allocations: 110.6 kB / 0.8015 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/2.164, allocations: 40.84 kB / 0.8015 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2502/2.414, allocations: 119 MB / 0.9177 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/2.414, allocations: 30.56 kB / 0.9177 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/2.414, allocations: 1.094 kB / 0.9177 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0009198/2.415, allocations: 314.4 kB / 0.918 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/2.415, allocations: 55.41 kB / 0.9181 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005727/2.416, allocations: 417.5 kB / 0.9185 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/2.416, allocations: 25.7 kB / 0.9185 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/2.416, allocations: 267 kB / 0.9188 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/2.416, allocations: 31.78 kB / 0.9188 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.076e-05/2.416, allocations: 53.66 kB / 0.9188 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001544/2.416, allocations: 343.9 kB / 0.9192 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/2.417, allocations: 64.47 kB / 0.9192 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/2.417, allocations: 164.8 kB / 0.9194 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/2.417, allocations: 231.9 kB / 0.9196 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/2.417, allocations: 4 kB / 0.9196 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006174/2.418, allocations: 324.9 kB / 0.9199 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/2.418, allocations: 5.25 kB / 0.9199 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/2.418, allocations: 5.094 kB / 0.9199 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007999/2.418, allocations: 117.1 kB / 0.92 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/2.419, allocations: 37.11 kB / 0.9201 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005212/2.419, allocations: 0.5648 MB / 0.9206 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/2.419, allocations: 35.8 kB / 0.9207 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/2.419, allocations: 15.98 kB / 0.9207 GB, free: 0.6602 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001818/2.42, allocations: 169.7 kB / 0.9208 GB, free: 496 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.191e-05/2.42, allocations: 31.81 kB / 0.9209 GB, free: 464 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004876/2.42, allocations: 218.4 kB / 0.9211 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/2.42, allocations: 0 / 0.9211 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/2.42, allocations: 4.688 kB / 0.9211 GB, free: 232 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/2.42, allocations: 3.984 kB / 0.9211 GB, free: 228 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/2.421, allocations: 354.4 kB / 0.9214 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/2.421, allocations: 0 / 0.9214 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.727e-05/2.421, allocations: 4.812 kB / 0.9214 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004354/2.421, allocations: 79.77 kB / 0.9215 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/2.421, allocations: 12.56 kB / 0.9215 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004753/2.421, allocations: 0.568 MB / 0.9221 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.421, allocations: 3.984 kB / 0.9221 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003834/2.422, allocations: 202.5 kB / 0.9223 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/2.422, allocations: 112.9 kB / 0.9224 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/2.422, allocations: 1.312 kB / 0.9224 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.021e-05/2.422, allocations: 0 / 0.9224 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/2.422, allocations: 16.05 kB / 0.9224 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/2.422, allocations: 4 kB / 0.9224 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003574/2.422, allocations: 295.1 kB / 0.9227 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of sort global known variables: time 7e-08/2.422, allocations: 0 / 0.9227 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003764/2.426, allocations: 1.484 MB / 0.9241 GB, free: 13 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.006986/2.433, allocations: 2.246 MB / 0.9263 GB, free: 11 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004913/2.434, allocations: 165.2 kB / 0.9265 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/2.434, allocations: 0 / 0.9265 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001794/2.434, allocations: 52.52 kB / 0.9265 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004347/2.434, allocations: 79.59 kB / 0.9266 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/2.436, allocations: 0.6493 MB / 0.9272 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/2.436, allocations: 0.7951 MB / 0.928 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.061e-05/2.436, allocations: 35.44 kB / 0.928 GB, free: 9.188 MB / 0.7481 GB Notification: Performance of SimCode: time 3.2e-07/2.436, allocations: 0 / 0.928 GB, free: 9.188 MB / 0.7481 GB Notification: Performance of Templates: time 0.04494/2.481, allocations: 29.96 MB / 0.9573 GB, free: 11.25 MB / 0.7794 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.084528313018382] Failed to read output from testmodel.py, exit status != 0: 2.78176170703955 2.791090739 0.6402609029999999 Calling exit ...