Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) 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.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.816/0.816, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003741, allocations: 13.17 kB / 237.7 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05937/0.05976, allocations: 31.35 MB / 269.1 MB, free: 7.105 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.TestSwitchValve): time 1.676/1.736, allocations: 295.9 MB / 0.5518 GB, free: 12.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5277/2.264, allocations: 194 MB / 0.7412 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006344/2.265, allocations: 11.06 kB / 0.7412 GB, free: 1.777 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/SwitchValve.mo:36:3-37:55: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/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55:67: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/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55:67: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/LumpedStraightPipe.mo:56:3-57:65: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.0002926/2.265, allocations: 86.17 kB / 0.7413 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006268/2.265, allocations: 227.4 kB / 0.7415 GB, free: 1.773 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.03903/2.304, allocations: 13.4 MB / 0.7546 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001185/2.306, allocations: 0.8478 MB / 0.7554 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004794/2.306, allocations: 425.3 kB / 0.7558 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004171/2.307, allocations: 350 kB / 0.7562 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/2.307, allocations: 390.6 kB / 0.7565 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.671e-05/2.307, allocations: 80.66 kB / 0.7566 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04199/2.349, allocations: 22.26 MB / 0.7784 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00032/2.349, allocations: 189.3 kB / 0.7785 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0006017/2.35, allocations: 404.3 kB / 0.7789 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03439/2.384, allocations: 11.63 MB / 0.7903 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/2.384, allocations: 0.875 kB / 0.7903 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.825e-06/2.384, allocations: 0 / 0.7903 GB, free: 11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.3e-05/2.385, allocations: 3.656 kB / 0.7903 GB, free: 11 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.008015/2.393, allocations: 2.426 MB / 0.7926 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/2.393, allocations: 14.14 kB / 0.7927 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/2.393, allocations: 84.69 kB / 0.7927 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006333/2.393, allocations: 458.9 kB / 0.7932 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/2.394, allocations: 83.08 kB / 0.7933 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.902e-05/2.394, allocations: 66.31 kB / 0.7933 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/2.395, allocations: 0.7098 MB / 0.794 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/2.395, allocations: 0.9375 kB / 0.794 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/2.395, allocations: 30.3 kB / 0.794 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/2.395, allocations: 20.17 kB / 0.7941 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009385/2.396, allocations: 0.5998 MB / 0.7946 GB, free: 8.699 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.01056/2.406, allocations: 7.465 MB / 0.8019 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008607/2.407, allocations: 393.1 kB / 0.8023 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/2.407, allocations: 137.6 kB / 0.8024 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6978/3.105, allocations: 223.2 MB / 1.02 GB, free: 454.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/3.106, allocations: 224.6 kB / 1.021 GB, free: 454.4 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=38): time 3.055e-06/3.106, allocations: 0 / 1.021 GB, free: 454.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=38): time 0.002931/3.109, allocations: 0.9015 MB / 1.021 GB, free: 454.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/3.109, allocations: 113.9 kB / 1.022 GB, free: 454.1 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/3.109, allocations: 459.9 kB / 1.022 GB, free: 454 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/3.109, allocations: 31.17 kB / 1.022 GB, free: 454 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/3.11, allocations: 332.2 kB / 1.022 GB, free: 453.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.445e-05/3.11, allocations: 132.8 kB / 1.022 GB, free: 453.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/3.11, allocations: 119 kB / 1.023 GB, free: 453.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.382e-05/3.11, allocations: 353.8 kB / 1.023 GB, free: 453.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/3.11, allocations: 128.5 kB / 1.023 GB, free: 453.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/3.11, allocations: 243.1 kB / 1.023 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005029/3.116, allocations: 1.311 MB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/3.116, allocations: 2.844 kB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001092/3.117, allocations: 0.5756 MB / 1.025 GB, free: 453 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/3.117, allocations: 35.77 kB / 1.025 GB, free: 452.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/3.117, allocations: 4.375 kB / 1.025 GB, free: 452.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/3.119, allocations: 391.6 kB / 1.026 GB, free: 452.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/3.119, allocations: 74.55 kB / 1.026 GB, free: 452.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007473/3.12, allocations: 0.7374 MB / 1.026 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/3.12, allocations: 57.53 kB / 1.026 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/3.121, allocations: 24.97 kB / 1.026 GB, free: 452.4 MB / 0.8419 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: 15 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.fluid,SwitchValve.fluid,perteDP2.fluid,perteDP1.fluid,pulse.yL.signal,pulse.T0,$whenCondition1,SourceP1.fluid1,perteDP2.C1.diff_on_2,perteDP1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004202/3.121, allocations: 221 kB / 1.027 GB, free: 452.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/3.121, allocations: 59.95 kB / 1.027 GB, free: 452.2 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/3.122, allocations: 0.6019 MB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/3.122, allocations: 7.766 kB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/3.122, allocations: 0 / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/3.123, allocations: 169.8 kB / 1.027 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/3.123, allocations: 6.531 kB / 1.027 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/3.123, allocations: 12.17 kB / 1.027 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/3.123, allocations: 27.64 kB / 1.027 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00126/3.125, allocations: 0.6201 MB / 1.028 GB, free: 451.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008382/3.125, allocations: 0.6952 MB / 1.029 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002037/3.126, allocations: 131 kB / 1.029 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003223/3.126, allocations: 309.3 kB / 1.029 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of Backend: time 6.51e-07/3.126, allocations: 1.531 kB / 1.029 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.02009/3.146, allocations: 4.477 MB / 1.034 GB, free: 451.1 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002245/3.148, allocations: 1.595 MB / 1.035 GB, free: 450.1 MB / 0.8419 GB Notification: Performance of Templates: time 0.09138/3.24, allocations: 83.8 MB / 1.117 GB, free: 386.9 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)