Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8005/0.8005, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003381, allocations: 14.44 kB / 237.8 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0538/0.05415, allocations: 31.35 MB / 269.1 MB, free: 7.055 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.TestIdealSwitchValve): time 1.707/1.761, allocations: 295.8 MB / 0.5517 GB, free: 11.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5842/2.345, allocations: 194 MB / 0.7411 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004345/2.346, allocations: 13.31 kB / 0.7411 GB, free: 1.734 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/IdealSwitchValve.mo:22:3-24:37: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/IdealSwitchValve.mo:25:3-26:53: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.000213/2.346, allocations: 75.52 kB / 0.7412 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004458/2.346, allocations: 218 kB / 0.7414 GB, free: 1.73 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.03666/2.383, allocations: 13.13 MB / 0.7543 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001006/2.384, allocations: 0.7994 MB / 0.755 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004199/2.385, allocations: 413.4 kB / 0.7554 GB, free: 1.414 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/2.385, allocations: 330.6 kB / 0.7557 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/2.385, allocations: 369.6 kB / 0.7561 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.731e-05/2.385, allocations: 76.56 kB / 0.7562 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04557/2.431, allocations: 22.25 MB / 0.7779 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002875/2.431, allocations: 169.5 kB / 0.7781 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005682/2.432, allocations: 385.2 kB / 0.7784 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0312/2.463, allocations: 11.58 MB / 0.7897 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/2.463, allocations: 3.062 kB / 0.7897 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.703e-06/2.463, allocations: 0 / 0.7897 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.649e-05/2.463, allocations: 0.8438 kB / 0.7897 GB, free: 11.01 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: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.006992/2.47, allocations: 2.404 MB / 0.7921 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/2.47, allocations: 10 kB / 0.7921 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/2.47, allocations: 83.95 kB / 0.7922 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/2.471, allocations: 437.3 kB / 0.7926 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.708e-05/2.471, allocations: 77.67 kB / 0.7927 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.628e-05/2.471, allocations: 68.81 kB / 0.7927 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/2.472, allocations: 0.6745 MB / 0.7934 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/2.472, allocations: 7.438 kB / 0.7934 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.087e-05/2.472, allocations: 27.69 kB / 0.7934 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/2.472, allocations: 16.59 kB / 0.7934 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008135/2.473, allocations: 0.5562 MB / 0.794 GB, free: 8.809 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.0105/2.483, allocations: 7.403 MB / 0.8012 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008203/2.484, allocations: 365.2 kB / 0.8016 GB, free: 1.664 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/2.485, allocations: 129.6 kB / 0.8017 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.661/3.146, allocations: 223.1 MB / 1.02 GB, free: 455.6 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003827/3.146, allocations: 207.1 kB / 1.02 GB, free: 455.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 2.214e-06/3.146, allocations: 0 / 1.02 GB, free: 455.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.002477/3.148, allocations: 0.8236 MB / 1.021 GB, free: 455.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/3.149, allocations: 111.1 kB / 1.021 GB, free: 455.2 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/3.149, allocations: 438.5 kB / 1.021 GB, free: 455.1 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/3.149, allocations: 31.08 kB / 1.021 GB, free: 455.1 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/3.149, allocations: 333.5 kB / 1.021 GB, free: 455 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.414e-05/3.149, allocations: 119.8 kB / 1.022 GB, free: 454.9 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/3.149, allocations: 106.6 kB / 1.022 GB, free: 454.9 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.31e-05/3.15, allocations: 349.2 kB / 1.022 GB, free: 454.6 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/3.15, allocations: 116.5 kB / 1.022 GB, free: 454.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/3.15, allocations: 233.3 kB / 1.022 GB, free: 454.4 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004101/3.154, allocations: 1.151 MB / 1.023 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/3.154, allocations: 4.188 kB / 1.023 GB, free: 454.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009643/3.155, allocations: 0.5511 MB / 1.024 GB, free: 454 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/3.155, allocations: 32.83 kB / 1.024 GB, free: 454 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/3.155, allocations: 3.375 kB / 1.024 GB, free: 454 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/3.157, allocations: 299.1 kB / 1.024 GB, free: 454 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/3.157, allocations: 72.83 kB / 1.024 GB, free: 454 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005327/3.158, allocations: 0.6958 MB / 1.025 GB, free: 453.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/3.158, allocations: 56.22 kB / 1.025 GB, free: 453.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/3.158, allocations: 20.66 kB / 1.025 GB, free: 453.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: 11 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.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 (43): * Single equations (assignments): 41 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002587/3.158, allocations: 231.3 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.859e-05/3.158, allocations: 46.91 kB / 1.025 GB, free: 453.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/3.159, allocations: 0.5413 MB / 1.026 GB, free: 453.2 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/3.159, allocations: 3.469 kB / 1.026 GB, free: 453.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/3.159, allocations: 0 / 1.026 GB, free: 453.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/3.16, allocations: 168.8 kB / 1.026 GB, free: 453 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/3.16, allocations: 11.3 kB / 1.026 GB, free: 453 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/3.16, allocations: 9.938 kB / 1.026 GB, free: 453 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/3.16, allocations: 30.27 kB / 1.026 GB, free: 453 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001141/3.161, allocations: 0.5753 MB / 1.027 GB, free: 452.8 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007947/3.162, allocations: 0.6535 MB / 1.027 GB, free: 452.6 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001837/3.162, allocations: 117.4 kB / 1.027 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002688/3.162, allocations: 298.4 kB / 1.028 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of Backend: time 7.71e-07/3.162, allocations: 0 / 1.028 GB, free: 452.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01572/3.178, allocations: 4.449 MB / 1.032 GB, free: 452.2 MB / 0.8419 GB Notification: Performance of SimCode: time 0.001576/3.18, allocations: 1.551 MB / 1.034 GB, free: 451.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.08485/3.265, allocations: 83.26 MB / 1.115 GB, free: 388.7 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)