Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9309/0.9309, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000521/0.0005212, allocations: 15.41 kB / 237.8 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.0791, allocations: 31.35 MB / 269.1 MB, free: 7.051 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.SimpleExamples.TestSwitchValve): time 1.709/1.789, allocations: 296 MB / 0.5519 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5386/2.327, allocations: 194 MB / 0.7413 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/2.328, allocations: 10.22 kB / 0.7413 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.000235/2.328, allocations: 82.02 kB / 0.7414 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005697/2.328, allocations: 227.4 kB / 0.7416 GB, free: 1.777 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.03221/2.361, allocations: 13.39 MB / 0.7547 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008683/2.361, allocations: 0.8467 MB / 0.7556 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003855/2.362, allocations: 429.3 kB / 0.756 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/2.362, allocations: 346.3 kB / 0.7563 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/2.363, allocations: 388.6 kB / 0.7567 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.297e-05/2.363, allocations: 79.66 kB / 0.7567 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03836/2.401, allocations: 22.26 MB / 0.7785 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002583/2.401, allocations: 179.5 kB / 0.7787 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005235/2.402, allocations: 407.4 kB / 0.779 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02768/2.43, allocations: 11.62 MB / 0.7904 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/2.43, allocations: 0 / 0.7904 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.342e-06/2.43, allocations: 4 kB / 0.7904 GB, free: 11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.162e-05/2.43, allocations: 0 / 0.7904 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.006252/2.436, allocations: 2.425 MB / 0.7928 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/2.436, allocations: 9.719 kB / 0.7928 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/2.436, allocations: 84.88 kB / 0.7929 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/2.437, allocations: 458.5 kB / 0.7933 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/2.437, allocations: 80.67 kB / 0.7934 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.326e-05/2.437, allocations: 68.94 kB / 0.7934 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/2.438, allocations: 0.7109 MB / 0.7941 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/2.438, allocations: 4.25 kB / 0.7941 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/2.438, allocations: 27.75 kB / 0.7942 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/2.438, allocations: 18 kB / 0.7942 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009466/2.439, allocations: 0.5998 MB / 0.7948 GB, free: 8.664 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.01022/2.449, allocations: 7.471 MB / 0.8021 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008037/2.45, allocations: 383.9 kB / 0.8024 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/2.45, allocations: 142.7 kB / 0.8026 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.745/3.195, allocations: 223.2 MB / 1.02 GB, free: 454.1 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000507/3.196, allocations: 220.7 kB / 1.021 GB, free: 454 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=38): time 3.526e-06/3.196, allocations: 1.25 kB / 1.021 GB, free: 454 MB / 0.8419 GB Notification: Performance of matching and sorting (n=38): time 0.002867/3.199, allocations: 0.9097 MB / 1.022 GB, free: 453.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/3.199, allocations: 108.8 kB / 1.022 GB, free: 453.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/3.199, allocations: 460.3 kB / 1.022 GB, free: 453.6 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/3.199, allocations: 32.08 kB / 1.022 GB, free: 453.6 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/3.2, allocations: 339.7 kB / 1.022 GB, free: 453.5 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.886e-05/3.2, allocations: 130.5 kB / 1.023 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/3.2, allocations: 122 kB / 1.023 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.204e-05/3.2, allocations: 350.3 kB / 1.023 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/3.2, allocations: 127.1 kB / 1.023 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/3.2, allocations: 249.7 kB / 1.023 GB, free: 452.9 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004869/3.205, allocations: 1.303 MB / 1.025 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/3.205, allocations: 1.188 kB / 1.025 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009988/3.206, allocations: 0.5779 MB / 1.025 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/3.206, allocations: 37.89 kB / 1.025 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/3.206, allocations: 9.156 kB / 1.025 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/3.209, allocations: 386.5 kB / 1.026 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/3.209, allocations: 76.02 kB / 1.026 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000602/3.209, allocations: 0.7384 MB / 1.026 GB, free: 452 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/3.21, allocations: 59.98 kB / 1.027 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/3.21, allocations: 21.16 kB / 1.027 GB, free: 451.9 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.0002935/3.21, allocations: 233.1 kB / 1.027 GB, free: 451.8 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/3.21, allocations: 52.5 kB / 1.027 GB, free: 451.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/3.211, allocations: 0.5969 MB / 1.027 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/3.211, allocations: 7.891 kB / 1.027 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/3.211, allocations: 0 / 1.027 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/3.212, allocations: 168.9 kB / 1.028 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/3.212, allocations: 6.312 kB / 1.028 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/3.212, allocations: 16.83 kB / 1.028 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/3.212, allocations: 30.53 kB / 1.028 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001223/3.213, allocations: 0.614 MB / 1.028 GB, free: 451.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008325/3.214, allocations: 0.7065 MB / 1.029 GB, free: 451 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001929/3.214, allocations: 124.4 kB / 1.029 GB, free: 451 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002926/3.215, allocations: 311.5 kB / 1.029 GB, free: 450.9 MB / 0.8419 GB Notification: Performance of Backend: time 6.31e-07/3.215, allocations: 0 / 1.029 GB, free: 450.9 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01761/3.232, allocations: 4.465 MB / 1.034 GB, free: 450.7 MB / 0.8419 GB Notification: Performance of SimCode: time 0.001871/3.234, allocations: 1.607 MB / 1.035 GB, free: 449.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.08864/3.323, allocations: 83.8 MB / 1.117 GB, free: 386.4 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)