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.8043/0.8043, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005067, allocations: 15.97 kB / 204 MB, free: 10.14 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1947, allocations: 31.32 MB / 235.4 MB, free: 5.461 MB / 190.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.707/1.901, allocations: 293.9 MB / 0.5168 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5211/2.422, allocations: 195.1 MB / 0.7073 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/2.423, allocations: 9.188 kB / 0.7074 GB, free: 3.727 MB / 0.5762 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.0002163/2.423, allocations: 63.27 kB / 0.7074 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005057/2.424, allocations: 199.3 kB / 0.7076 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03085/2.454, allocations: 10.23 MB / 0.7176 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009934/2.455, allocations: 0.8081 MB / 0.7184 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/2.456, allocations: 399.1 kB / 0.7188 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/2.456, allocations: 315.9 kB / 0.7191 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/2.457, allocations: 381.3 kB / 0.7194 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.466e-05/2.457, allocations: 55.84 kB / 0.7195 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03762/2.494, allocations: 22.4 MB / 0.7414 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000267/2.495, allocations: 157.8 kB / 0.7415 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005156/2.495, allocations: 377.8 kB / 0.7419 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02832/2.523, allocations: 11.87 MB / 0.7535 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/2.524, allocations: 6.938 kB / 0.7535 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.703e-06/2.524, allocations: 0 / 0.7535 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.064e-05/2.524, allocations: 0 / 0.7535 GB, free: 14.41 MB / 0.5919 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.005885/2.529, allocations: 2.423 MB / 0.7558 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/2.53, allocations: 11 kB / 0.7558 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/2.53, allocations: 87.69 kB / 0.7559 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/2.53, allocations: 440.1 kB / 0.7563 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.956e-05/2.53, allocations: 82.36 kB / 0.7564 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.197e-05/2.53, allocations: 69.17 kB / 0.7565 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009546/2.531, allocations: 0.7067 MB / 0.7572 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/2.531, allocations: 1.203 kB / 0.7572 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.546e-05/2.531, allocations: 31.47 kB / 0.7572 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/2.531, allocations: 17.06 kB / 0.7572 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008879/2.532, allocations: 0.605 MB / 0.7578 GB, free: 12.17 MB / 0.5919 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.009227/2.542, allocations: 7.484 MB / 0.7651 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007786/2.542, allocations: 388.4 kB / 0.7655 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/2.543, allocations: 139.9 kB / 0.7656 GB, free: 5.891 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5857/3.128, allocations: 221.8 MB / 0.9822 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004719/3.129, allocations: 223.9 kB / 0.9824 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.574e-06/3.129, allocations: 0 / 0.9824 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002836/3.132, allocations: 0.9111 MB / 0.9833 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/3.132, allocations: 108.3 kB / 0.9834 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004808/3.132, allocations: 458.8 kB / 0.9838 GB, free: 450 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/3.132, allocations: 31.3 kB / 0.9839 GB, free: 450 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/3.132, allocations: 338.7 kB / 0.9842 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.126e-05/3.132, allocations: 129.1 kB / 0.9843 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/3.133, allocations: 113.5 kB / 0.9844 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.386e-05/3.133, allocations: 356.5 kB / 0.9848 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/3.133, allocations: 133.4 kB / 0.9849 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/3.133, allocations: 242 kB / 0.9851 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/3.138, allocations: 1.305 MB / 0.9864 GB, free: 449 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/3.138, allocations: 2.938 kB / 0.9864 GB, free: 449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008918/3.139, allocations: 0.5887 MB / 0.987 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/3.139, allocations: 39.36 kB / 0.987 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/3.139, allocations: 4.312 kB / 0.987 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/3.141, allocations: 378 kB / 0.9874 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/3.142, allocations: 80.06 kB / 0.9875 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005781/3.142, allocations: 0.7347 MB / 0.9882 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/3.142, allocations: 58.91 kB / 0.9882 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/3.143, allocations: 28.25 kB / 0.9883 GB, free: 448.3 MB / 0.8106 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.0002737/3.143, allocations: 222.5 kB / 0.9885 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/3.143, allocations: 54.27 kB / 0.9885 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/3.144, allocations: 0.6006 MB / 0.9891 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/3.144, allocations: 7.594 kB / 0.9891 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/3.144, allocations: 2.312 kB / 0.9891 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/3.144, allocations: 1.031 kB / 0.9891 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/3.145, allocations: 0.5667 MB / 0.9897 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/3.145, allocations: 0 / 0.9897 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/3.145, allocations: 39.95 kB / 0.9897 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001851/3.147, allocations: 346.5 kB / 0.99 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/3.147, allocations: 18.52 kB / 0.9901 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000538/3.147, allocations: 0.7482 MB / 0.9908 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/3.147, allocations: 0.5938 kB / 0.9908 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000874/3.148, allocations: 0.528 MB / 0.9913 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/3.148, allocations: 177.8 kB / 0.9915 GB, free: 447 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.767e-05/3.148, allocations: 9.641 kB / 0.9915 GB, free: 447 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/3.148, allocations: 12.8 kB / 0.9915 GB, free: 447 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/3.149, allocations: 32.59 kB / 0.9915 GB, free: 447 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/3.149, allocations: 15.75 kB / 0.9915 GB, free: 447 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003039/3.149, allocations: 328.6 kB / 0.9919 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/3.149, allocations: 0 / 0.9919 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004391/3.153, allocations: 1.889 MB / 0.9937 GB, free: 446.8 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007533/3.161, allocations: 2.933 MB / 0.9966 GB, free: 446.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008932/3.162, allocations: 439.1 kB / 0.997 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/3.162, allocations: 0 / 0.997 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004006/3.162, allocations: 250.2 kB / 0.9972 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/3.163, allocations: 113.3 kB / 0.9973 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/3.164, allocations: 1.208 MB / 0.9985 GB, free: 445.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/3.165, allocations: 0.8842 MB / 0.9994 GB, free: 445.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002772/3.165, allocations: 91.69 kB / 0.9995 GB, free: 445.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.102e-05/3.165, allocations: 42.16 kB / 0.9995 GB, free: 445.1 MB / 0.8106 GB Notification: Performance of SimCode: time 3.2e-07/3.165, allocations: 0 / 0.9995 GB, free: 445.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.057/3.222, allocations: 56.19 MB / 1.054 GB, free: 406.3 MB / 0.8106 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)