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.832/0.832, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003431, allocations: 16.27 kB / 237.8 MB, free: 1.766 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05555/0.05591, allocations: 31.35 MB / 269.1 MB, free: 7.035 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.679/1.735, allocations: 296 MB / 0.5518 GB, free: 11.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6205/2.355, allocations: 194 MB / 0.7413 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005512/2.356, allocations: 12.78 kB / 0.7413 GB, free: 1.719 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.0003556/2.356, allocations: 84.83 kB / 0.7414 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0007297/2.357, allocations: 220.9 kB / 0.7416 GB, free: 1.719 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.03583/2.393, allocations: 13.15 MB / 0.7544 GB, free: 1.426 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001069/2.394, allocations: 0.8499 MB / 0.7552 GB, free: 1.422 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/2.394, allocations: 431.6 kB / 0.7556 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/2.395, allocations: 341.1 kB / 0.756 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003433/2.395, allocations: 392.4 kB / 0.7563 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.87e-05/2.395, allocations: 81.81 kB / 0.7564 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04354/2.439, allocations: 22.25 MB / 0.7782 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002784/2.439, allocations: 180.2 kB / 0.7783 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005261/2.44, allocations: 406.2 kB / 0.7787 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03157/2.471, allocations: 11.62 MB / 0.7901 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/2.471, allocations: 3.984 kB / 0.7901 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/2.471, allocations: 1.031 kB / 0.7901 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.705e-05/2.471, allocations: 0 / 0.7901 GB, free: 10.95 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.006661/2.478, allocations: 2.422 MB / 0.7924 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/2.478, allocations: 9.125 kB / 0.7924 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/2.478, allocations: 86.81 kB / 0.7925 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005901/2.479, allocations: 461.5 kB / 0.793 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/2.479, allocations: 81.17 kB / 0.793 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-05/2.479, allocations: 65.75 kB / 0.7931 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009989/2.48, allocations: 0.7132 MB / 0.7938 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/2.48, allocations: 0 / 0.7938 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/2.48, allocations: 29.19 kB / 0.7938 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/2.48, allocations: 18.23 kB / 0.7939 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008829/2.481, allocations: 0.6011 MB / 0.7944 GB, free: 8.723 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.00984/2.491, allocations: 7.472 MB / 0.8017 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008426/2.492, allocations: 384.3 kB / 0.8021 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/2.492, allocations: 146.3 kB / 0.8022 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6704/3.162, allocations: 223.1 MB / 1.02 GB, free: 454.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004253/3.163, allocations: 224.6 kB / 1.02 GB, free: 454.6 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=38): time 2.826e-06/3.163, allocations: 0 / 1.02 GB, free: 454.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=38): time 0.002882/3.166, allocations: 0.9057 MB / 1.021 GB, free: 454.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/3.166, allocations: 114.5 kB / 1.021 GB, free: 454.3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005186/3.166, allocations: 459.7 kB / 1.022 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/3.166, allocations: 30.86 kB / 1.022 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/3.166, allocations: 337.5 kB / 1.022 GB, free: 454.1 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/3.167, allocations: 132.6 kB / 1.022 GB, free: 454 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/3.167, allocations: 116.2 kB / 1.022 GB, free: 454 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.622e-05/3.167, allocations: 352.5 kB / 1.023 GB, free: 453.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/3.167, allocations: 131 kB / 1.023 GB, free: 453.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/3.167, allocations: 245.8 kB / 1.023 GB, free: 453.6 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005199/3.172, allocations: 1.307 MB / 1.024 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/3.172, allocations: 3.062 kB / 1.024 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001179/3.174, allocations: 0.5761 MB / 1.025 GB, free: 453.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.481e-05/3.174, allocations: 41.95 kB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/3.174, allocations: 5.156 kB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/3.176, allocations: 380.2 kB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/3.176, allocations: 77.75 kB / 1.025 GB, free: 453.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005842/3.177, allocations: 0.7314 MB / 1.026 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/3.177, allocations: 61.69 kB / 1.026 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/3.177, allocations: 25.17 kB / 1.026 GB, free: 452.6 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.0002594/3.177, allocations: 236.2 kB / 1.026 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.225e-05/3.178, allocations: 56.06 kB / 1.026 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/3.179, allocations: 0.5961 MB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/3.179, allocations: 3.516 kB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/3.179, allocations: 0 / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/3.179, allocations: 175.1 kB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.343e-05/3.179, allocations: 7.516 kB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/3.179, allocations: 16.89 kB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.322e-05/3.179, allocations: 24.16 kB / 1.027 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001172/3.18, allocations: 0.6204 MB / 1.028 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007788/3.181, allocations: 0.7015 MB / 1.029 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002/3.181, allocations: 122.9 kB / 1.029 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002871/3.182, allocations: 308.7 kB / 1.029 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of Backend: time 4.11e-07/3.182, allocations: 0 / 1.029 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01534/3.197, allocations: 4.473 MB / 1.033 GB, free: 451.3 MB / 0.8419 GB Notification: Performance of SimCode: time 0.001578/3.199, allocations: 1.609 MB / 1.035 GB, free: 450.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.08322/3.282, allocations: 83.79 MB / 1.117 GB, free: 386.7 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)