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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.4765/0.4765, allocations: 111.6 MB / 131.7 MB, free: 5.051 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.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 1.884e-06/1.884e-06, allocations: 0 / 176.5 MB, free: 9.453 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.883e-05, allocations: 2.312 kB / 176.5 MB, free: 9.449 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.023/1.023, allocations: 257 MB / 433.5 MB, free: 328 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3442/1.368, allocations: 181.5 MB / 0.6005 GB, free: 1.023 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/1.368, allocations: 11.88 kB / 0.6006 GB, free: 1.012 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:39:3-40:78: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 master/Fluid/BoundaryConditions/SinkP.mo:32:3-33:80: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 master/Fluid/PressureLosses/ControlValve.mo:29:3-30:81: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 master/Fluid/PressureLosses/ControlValve.mo:31:3-32:79: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.0002443/1.368, allocations: 95.44 kB / 0.6006 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002748/1.368, allocations: 178.8 kB / 0.6008 GB, free: 0.7422 MB / 0.5105 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88: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.02072/1.389, allocations: 11.74 MB / 0.6123 GB, free: 4.973 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005009/1.39, allocations: 454.4 kB / 0.6127 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/1.39, allocations: 194 kB / 0.6129 GB, free: 4.332 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/1.39, allocations: 263.4 kB / 0.6132 GB, free: 4.074 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/1.39, allocations: 183.5 kB / 0.6133 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/1.39, allocations: 36 kB / 0.6134 GB, free: 3.859 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02306/1.413, allocations: 18.7 MB / 0.6316 GB, free: 1.133 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001596/1.414, allocations: 123.6 kB / 0.6317 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/1.414, allocations: 143.6 kB / 0.6319 GB, free: 0.8711 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01945/1.433, allocations: 12.28 MB / 0.6439 GB, free: 4.555 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/1.433, allocations: 0 / 0.6439 GB, free: 4.555 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.994e-06/1.433, allocations: 0 / 0.6439 GB, free: 4.555 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.404e-06/1.433, allocations: 0 / 0.6439 GB, free: 4.555 MB / 0.5573 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.003501/1.437, allocations: 1.972 MB / 0.6458 GB, free: 2.535 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/1.437, allocations: 11.98 kB / 0.6458 GB, free: 2.523 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/1.437, allocations: 79.67 kB / 0.6459 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/1.437, allocations: 310.1 kB / 0.6462 GB, free: 2.113 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/1.437, allocations: 29 kB / 0.6462 GB, free: 2.086 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/1.437, allocations: 28 kB / 0.6462 GB, free: 2.059 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/1.438, allocations: 338.6 kB / 0.6466 GB, free: 1.691 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/1.438, allocations: 0 / 0.6466 GB, free: 1.691 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/1.438, allocations: 20.55 kB / 0.6466 GB, free: 1.672 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/1.438, allocations: 15.94 kB / 0.6466 GB, free: 1.656 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/1.438, allocations: 155.7 kB / 0.6467 GB, free: 1.504 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004096/1.442, allocations: 3.429 MB / 0.6501 GB, free: 14.01 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/1.442, allocations: 91.7 kB / 0.6502 GB, free: 13.91 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.801e-05/1.442, allocations: 27.67 kB / 0.6502 GB, free: 13.88 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2482/1.69, allocations: 67.35 MB / 0.716 GB, free: 297 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/1.69, allocations: 35.58 kB / 0.716 GB, free: 297 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/1.69, allocations: 0 / 0.716 GB, free: 297 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006353/1.691, allocations: 188.7 kB / 0.7162 GB, free: 296.9 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/1.691, allocations: 51.41 kB / 0.7162 GB, free: 296.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/1.691, allocations: 443.5 kB / 0.7167 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.886e-06/1.691, allocations: 25.7 kB / 0.7167 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/1.691, allocations: 324.7 kB / 0.717 GB, free: 296.3 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/1.692, allocations: 30.92 kB / 0.717 GB, free: 296.3 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/1.692, allocations: 66.45 kB / 0.7171 GB, free: 296.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.77e-05/1.692, allocations: 0.5176 MB / 0.7176 GB, free: 295.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.798e-05/1.692, allocations: 35.84 kB / 0.7176 GB, free: 295.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/1.692, allocations: 181.8 kB / 0.7178 GB, free: 295.5 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/1.692, allocations: 223.3 kB / 0.718 GB, free: 295.3 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/1.692, allocations: 3.438 kB / 0.718 GB, free: 295.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004143/1.692, allocations: 262.6 kB / 0.7183 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/1.692, allocations: 8.656 kB / 0.7183 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/1.692, allocations: 8.484 kB / 0.7183 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004852/1.693, allocations: 83.03 kB / 0.7184 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/1.693, allocations: 41.64 kB / 0.7184 GB, free: 295.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002954/1.693, allocations: 0.8266 MB / 0.7192 GB, free: 294.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/1.693, allocations: 24.81 kB / 0.7192 GB, free: 294.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/1.693, allocations: 9.188 kB / 0.7192 GB, free: 294.3 MB / 0.6198 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.000103/1.694, allocations: 172.6 kB / 0.7194 GB, free: 294.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/1.694, allocations: 39.33 kB / 0.7194 GB, free: 294.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003063/1.694, allocations: 188.8 kB / 0.7196 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/1.694, allocations: 0 / 0.7196 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/1.694, allocations: 2.672 kB / 0.7196 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/1.694, allocations: 0 / 0.7196 GB, free: 293.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/1.694, allocations: 282.3 kB / 0.7199 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/1.694, allocations: 1.25 kB / 0.7199 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.146e-05/1.694, allocations: 5.047 kB / 0.7199 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/1.694, allocations: 59.22 kB / 0.72 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/1.694, allocations: 3.781 kB / 0.72 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002315/1.695, allocations: 0.8293 MB / 0.7208 GB, free: 292.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.695, allocations: 0 / 0.7208 GB, free: 292.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/1.695, allocations: 183.4 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/1.695, allocations: 55.55 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/1.695, allocations: 3.094 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.443e-05/1.695, allocations: 5.5 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/1.695, allocations: 11.8 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/1.695, allocations: 0.8125 kB / 0.721 GB, free: 292.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001704/1.695, allocations: 280.8 kB / 0.7213 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/1.695, allocations: 2.781 kB / 0.7213 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002616/1.698, allocations: 1.488 MB / 0.7227 GB, free: 291.3 MB / 0.6198 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.004718/1.703, allocations: 2.42 MB / 0.7251 GB, free: 289.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003032/1.703, allocations: 127.4 kB / 0.7252 GB, free: 289.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/1.703, allocations: 0 / 0.7252 GB, free: 289.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.514e-05/1.703, allocations: 52.47 kB / 0.7253 GB, free: 289.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/1.703, allocations: 83.61 kB / 0.7254 GB, free: 289.2 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/1.704, allocations: 0.6136 MB / 0.726 GB, free: 288.6 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.073e-05/1.704, allocations: 100.3 kB / 0.7261 GB, free: 288.4 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.918e-05/1.705, allocations: 42.12 kB / 0.7261 GB, free: 288.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/1.705, allocations: 24.5 kB / 0.7261 GB, free: 288.4 MB / 0.6198 GB Notification: Performance of SimCode: time 1.173e-06/1.705, allocations: 0 / 0.7261 GB, free: 288.4 MB / 0.6198 GB Notification: Performance of Templates: time 0.03849/1.743, allocations: 47.12 MB / 0.7721 GB, free: 241.5 MB / 0.6198 GB " [Timeout remaining time 658] 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.344440595014021]