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.8163/0.8163, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003884, allocations: 11.98 kB / 204 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1849, allocations: 31.33 MB / 235.4 MB, free: 5.469 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.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.593/1.777, allocations: 293.8 MB / 0.5168 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5138/2.291, allocations: 195.1 MB / 0.7073 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006029/2.292, allocations: 8.531 kB / 0.7073 GB, free: 3.742 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.0002675/2.292, allocations: 61.89 kB / 0.7073 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006057/2.293, allocations: 197.7 kB / 0.7075 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03198/2.325, allocations: 10.24 MB / 0.7175 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001087/2.326, allocations: 0.8131 MB / 0.7183 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004391/2.326, allocations: 394.4 kB / 0.7187 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004032/2.327, allocations: 320.2 kB / 0.719 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000317/2.327, allocations: 378.2 kB / 0.7194 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.261e-05/2.327, allocations: 58.56 kB / 0.7194 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03905/2.366, allocations: 22.41 MB / 0.7413 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003109/2.367, allocations: 155.2 kB / 0.7415 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006006/2.367, allocations: 378.7 kB / 0.7418 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03008/2.397, allocations: 11.86 MB / 0.7534 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.009e-05/2.397, allocations: 0 / 0.7534 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.314e-06/2.397, allocations: 0 / 0.7534 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.282e-05/2.397, allocations: 0 / 0.7534 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.006288/2.404, allocations: 2.427 MB / 0.7558 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/2.404, allocations: 11.25 kB / 0.7558 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/2.404, allocations: 88.69 kB / 0.7559 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/2.405, allocations: 434.9 kB / 0.7563 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/2.405, allocations: 82.92 kB / 0.7564 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.066e-05/2.405, allocations: 70.42 kB / 0.7564 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000984/2.406, allocations: 0.7029 MB / 0.7571 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/2.406, allocations: 2.562 kB / 0.7571 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/2.406, allocations: 26.41 kB / 0.7571 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/2.406, allocations: 17.2 kB / 0.7572 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008543/2.407, allocations: 0.6124 MB / 0.7577 GB, free: 12.18 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.009691/2.416, allocations: 7.483 MB / 0.7651 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007864/2.417, allocations: 384.6 kB / 0.7654 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/2.417, allocations: 143.8 kB / 0.7656 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6747/3.092, allocations: 221.8 MB / 0.9821 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005289/3.093, allocations: 229.5 kB / 0.9823 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.475e-06/3.093, allocations: 0.75 kB / 0.9823 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002864/3.096, allocations: 0.9154 MB / 0.9832 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/3.096, allocations: 109.2 kB / 0.9833 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005973/3.096, allocations: 456.1 kB / 0.9838 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/3.096, allocations: 32.27 kB / 0.9838 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/3.096, allocations: 335.3 kB / 0.9841 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/3.097, allocations: 131 kB / 0.9843 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/3.097, allocations: 110.1 kB / 0.9844 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.556e-05/3.097, allocations: 358.9 kB / 0.9847 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/3.097, allocations: 126.9 kB / 0.9848 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003327/3.097, allocations: 247.7 kB / 0.9851 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004832/3.102, allocations: 1.307 MB / 0.9863 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/3.102, allocations: 0 / 0.9863 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009714/3.103, allocations: 0.5938 MB / 0.9869 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/3.103, allocations: 35.81 kB / 0.9869 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/3.103, allocations: 3.938 kB / 0.987 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/3.106, allocations: 384.8 kB / 0.9873 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/3.106, allocations: 73.11 kB / 0.9874 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005974/3.106, allocations: 0.7367 MB / 0.9881 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/3.107, allocations: 57.67 kB / 0.9882 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/3.107, allocations: 30.42 kB / 0.9882 GB, free: 448.1 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.0003056/3.107, allocations: 226.1 kB / 0.9884 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/3.107, allocations: 53.36 kB / 0.9885 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/3.108, allocations: 0.5998 MB / 0.989 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/3.108, allocations: 3.938 kB / 0.989 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/3.108, allocations: 0.5 kB / 0.989 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/3.108, allocations: 1.125 kB / 0.9891 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005627/3.109, allocations: 0.5755 MB / 0.9896 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/3.109, allocations: 0.8438 kB / 0.9896 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/3.109, allocations: 32.09 kB / 0.9896 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/3.111, allocations: 351.4 kB / 0.99 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/3.111, allocations: 15.64 kB / 0.99 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005546/3.112, allocations: 0.7529 MB / 0.9907 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/3.112, allocations: 0 / 0.9907 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008516/3.113, allocations: 0.5338 MB / 0.9912 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/3.113, allocations: 174.8 kB / 0.9914 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/3.113, allocations: 7.219 kB / 0.9914 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/3.113, allocations: 15.73 kB / 0.9914 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.374e-05/3.113, allocations: 27 kB / 0.9915 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/3.113, allocations: 16.38 kB / 0.9915 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003576/3.113, allocations: 328.3 kB / 0.9918 GB, free: 446.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/3.113, allocations: 1.031 kB / 0.9918 GB, free: 446.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005119/3.119, allocations: 1.887 MB / 0.9936 GB, free: 446.6 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.01068/3.129, allocations: 2.923 MB / 0.9965 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001439/3.131, allocations: 440.8 kB / 0.9969 GB, free: 446.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/3.131, allocations: 0 / 0.9969 GB, free: 446.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005995/3.131, allocations: 251.5 kB / 0.9972 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000832/3.132, allocations: 109.1 kB / 0.9973 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/3.134, allocations: 1.214 MB / 0.9984 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/3.135, allocations: 0.8811 MB / 0.9993 GB, free: 444.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003226/3.135, allocations: 92.73 kB / 0.9994 GB, free: 444.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/3.135, allocations: 46.59 kB / 0.9994 GB, free: 444.9 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/3.135, allocations: 0 / 0.9994 GB, free: 444.9 MB / 0.8106 GB Notification: Performance of Templates: time 0.06036/3.195, allocations: 56.19 MB / 1.054 GB, free: 406.3 MB / 0.8106 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)