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.8235/0.8235, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003324, allocations: 17.08 kB / 237.7 MB, free: 1.797 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05553/0.05588, allocations: 31.34 MB / 269.1 MB, free: 7.102 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.623/1.679, allocations: 295.9 MB / 0.5517 GB, free: 12.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5239/2.203, allocations: 194 MB / 0.7412 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004531/2.204, allocations: 10.31 kB / 0.7412 GB, free: 1.766 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.000227/2.204, allocations: 81 kB / 0.7412 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005104/2.204, allocations: 229.2 kB / 0.7415 GB, free: 1.762 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.03898/2.243, allocations: 13.15 MB / 0.7543 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00095/2.244, allocations: 0.8405 MB / 0.7551 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/2.245, allocations: 428.8 kB / 0.7555 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/2.245, allocations: 344.4 kB / 0.7559 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/2.246, allocations: 391.4 kB / 0.7562 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.631e-05/2.246, allocations: 79.06 kB / 0.7563 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03717/2.283, allocations: 22.26 MB / 0.778 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002831/2.283, allocations: 180.3 kB / 0.7782 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005714/2.284, allocations: 412.5 kB / 0.7786 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03038/2.314, allocations: 11.62 MB / 0.79 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/2.314, allocations: 0.75 kB / 0.79 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/2.314, allocations: 0 / 0.79 GB, free: 11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.482e-05/2.314, allocations: 3.344 kB / 0.79 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.006797/2.321, allocations: 2.429 MB / 0.7923 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/2.321, allocations: 12.86 kB / 0.7923 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/2.321, allocations: 85.06 kB / 0.7924 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00058/2.322, allocations: 456 kB / 0.7929 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.874e-05/2.322, allocations: 81.23 kB / 0.7929 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/2.322, allocations: 68.03 kB / 0.793 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/2.323, allocations: 0.7132 MB / 0.7937 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/2.323, allocations: 3.188 kB / 0.7937 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.62e-05/2.323, allocations: 28.59 kB / 0.7937 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/2.323, allocations: 17.8 kB / 0.7937 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009046/2.324, allocations: 0.6005 MB / 0.7943 GB, free: 8.766 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.009236/2.333, allocations: 7.467 MB / 0.8016 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008171/2.334, allocations: 387.6 kB / 0.802 GB, free: 1.332 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/2.334, allocations: 136.8 kB / 0.8021 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6819/3.016, allocations: 223.2 MB / 1.02 GB, free: 454.9 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004708/3.017, allocations: 226.4 kB / 1.02 GB, free: 454.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=38): time 4.479e-06/3.017, allocations: 0 / 1.02 GB, free: 454.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=38): time 0.00304/3.02, allocations: 0.9086 MB / 1.021 GB, free: 454.6 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/3.02, allocations: 107.5 kB / 1.021 GB, free: 454.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/3.021, allocations: 458.6 kB / 1.022 GB, free: 454.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/3.021, allocations: 34.23 kB / 1.022 GB, free: 454.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/3.021, allocations: 337.3 kB / 1.022 GB, free: 454.3 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.361e-05/3.021, allocations: 129.5 kB / 1.022 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/3.021, allocations: 118.6 kB / 1.022 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.789e-05/3.021, allocations: 350 kB / 1.023 GB, free: 453.8 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/3.021, allocations: 128.3 kB / 1.023 GB, free: 453.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/3.022, allocations: 244.4 kB / 1.023 GB, free: 453.7 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005202/3.027, allocations: 1.307 MB / 1.024 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/3.027, allocations: 5.531 kB / 1.024 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001171/3.028, allocations: 0.576 MB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.238e-05/3.028, allocations: 40.48 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/3.028, allocations: 5.938 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002314/3.03, allocations: 382.2 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/3.031, allocations: 71.34 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006815/3.031, allocations: 0.7403 MB / 1.026 GB, free: 452.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004039/3.032, allocations: 56.11 kB / 1.026 GB, free: 452.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/3.032, allocations: 25.33 kB / 1.026 GB, free: 452.7 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.0003625/3.032, allocations: 229 kB / 1.026 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.558e-05/3.032, allocations: 52.12 kB / 1.026 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/3.034, allocations: 0.6058 MB / 1.027 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/3.034, allocations: 3.859 kB / 1.027 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/3.034, allocations: 0 / 1.027 GB, free: 452.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/3.034, allocations: 170.1 kB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/3.034, allocations: 10.28 kB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/3.034, allocations: 10 kB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.844e-05/3.034, allocations: 31.55 kB / 1.027 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001303/3.036, allocations: 0.6174 MB / 1.028 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008774/3.036, allocations: 0.7085 MB / 1.028 GB, free: 451.8 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001993/3.037, allocations: 124 kB / 1.029 GB, free: 451.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002657/3.037, allocations: 309 kB / 1.029 GB, free: 451.7 MB / 0.8419 GB Notification: Performance of Backend: time 5.61e-07/3.037, allocations: 0 / 1.029 GB, free: 451.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0173/3.054, allocations: 4.46 MB / 1.033 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of SimCode: time 0.001734/3.056, allocations: 1.614 MB / 1.035 GB, free: 450.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.08393/3.14, allocations: 83.8 MB / 1.117 GB, free: 387.2 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)