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.8647/0.8647, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.977e-05, allocations: 4 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2049, allocations: 31.98 MB / 236.8 MB, free: 5.434 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.793/1.998, allocations: 294.7 MB / 0.519 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6302/2.628, allocations: 192.7 MB / 0.7073 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006737/2.628, allocations: 11.28 kB / 0.7073 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001734/2.629, allocations: 53.41 kB / 0.7073 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005933/2.629, allocations: 206 kB / 0.7075 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03485/2.664, allocations: 10.46 MB / 0.7178 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001212/2.665, allocations: 0.8051 MB / 0.7185 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/2.666, allocations: 358.6 kB / 0.7189 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003762/2.666, allocations: 272.4 kB / 0.7191 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/2.667, allocations: 319.9 kB / 0.7194 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/2.667, allocations: 34.41 kB / 0.7195 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04464/2.711, allocations: 22.51 MB / 0.7415 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003808/2.712, allocations: 127.5 kB / 0.7416 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009885/2.713, allocations: 372.7 kB / 0.7419 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04095/2.754, allocations: 11.76 MB / 0.7534 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/2.754, allocations: 0 / 0.7534 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.805e-06/2.754, allocations: 0 / 0.7534 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.824e-05/2.754, allocations: 4 kB / 0.7534 GB, free: 13.74 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.007761/2.762, allocations: 2.283 MB / 0.7557 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/2.762, allocations: 10.11 kB / 0.7557 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/2.762, allocations: 89.59 kB / 0.7558 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006837/2.763, allocations: 445.9 kB / 0.7562 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-05/2.763, allocations: 81.86 kB / 0.7563 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/2.763, allocations: 65.44 kB / 0.7563 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/2.764, allocations: 0.713 MB / 0.757 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/2.764, allocations: 2.906 kB / 0.757 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.933e-05/2.764, allocations: 28.56 kB / 0.757 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/2.764, allocations: 16.66 kB / 0.7571 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/2.765, allocations: 0.5977 MB / 0.7576 GB, free: 11.52 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.01058/2.776, allocations: 7.493 MB / 0.765 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/2.777, allocations: 389.1 kB / 0.7653 GB, free: 5.246 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002336/2.777, allocations: 141.1 kB / 0.7655 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7162/3.493, allocations: 223.7 MB / 0.984 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005421/3.494, allocations: 223.7 kB / 0.9842 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.695e-06/3.494, allocations: 0 / 0.9842 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.003301/3.497, allocations: 0.923 MB / 0.9851 GB, free: 452.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/3.497, allocations: 108.8 kB / 0.9852 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000732/3.498, allocations: 459.1 kB / 0.9856 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/3.498, allocations: 37.39 kB / 0.9857 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/3.498, allocations: 328.7 kB / 0.986 GB, free: 452 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/3.498, allocations: 133.4 kB / 0.9861 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/3.498, allocations: 57.31 kB / 0.9861 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001039/3.499, allocations: 352 kB / 0.9865 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/3.499, allocations: 134.5 kB / 0.9866 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/3.499, allocations: 244.8 kB / 0.9868 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005425/3.505, allocations: 1.358 MB / 0.9882 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/3.505, allocations: 4.25 kB / 0.9882 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00115/3.506, allocations: 0.5968 MB / 0.9888 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/3.506, allocations: 35.23 kB / 0.9888 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/3.506, allocations: 5.844 kB / 0.9888 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/3.508, allocations: 444.7 kB / 0.9892 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/3.508, allocations: 76.59 kB / 0.9893 GB, free: 451 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006683/3.509, allocations: 0.7418 MB / 0.99 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/3.509, allocations: 59.8 kB / 0.9901 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-05/3.51, allocations: 27.73 kB / 0.9901 GB, free: 450.4 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.0003989/3.51, allocations: 220.4 kB / 0.9903 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/3.51, allocations: 50.22 kB / 0.9904 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/3.511, allocations: 0.597 MB / 0.9909 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/3.511, allocations: 5.719 kB / 0.9909 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/3.511, allocations: 0.7031 kB / 0.9909 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/3.511, allocations: 1.688 kB / 0.991 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007842/3.512, allocations: 0.5723 MB / 0.9915 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/3.512, allocations: 1.812 kB / 0.9915 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/3.512, allocations: 34.34 kB / 0.9915 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/3.514, allocations: 405 kB / 0.9919 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/3.514, allocations: 19.83 kB / 0.9919 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005872/3.515, allocations: 0.745 MB / 0.9927 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/3.515, allocations: 0.7031 kB / 0.9927 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009166/3.516, allocations: 0.5284 MB / 0.9932 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/3.516, allocations: 179.2 kB / 0.9934 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/3.516, allocations: 6.688 kB / 0.9934 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/3.516, allocations: 13.69 kB / 0.9934 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.786e-05/3.516, allocations: 28.08 kB / 0.9934 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/3.516, allocations: 16.34 kB / 0.9934 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003723/3.517, allocations: 328.2 kB / 0.9937 GB, free: 449 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/3.517, allocations: 0 / 0.9937 GB, free: 449 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00612/3.523, allocations: 1.888 MB / 0.9956 GB, free: 448.9 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.01177/3.535, allocations: 2.901 MB / 0.9984 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001167/3.536, allocations: 436.5 kB / 0.9988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/3.536, allocations: 0 / 0.9988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004977/3.537, allocations: 242.1 kB / 0.9991 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007851/3.537, allocations: 114.8 kB / 0.9992 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/3.539, allocations: 1.256 MB / 1 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/3.54, allocations: 0.884 MB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003479/3.54, allocations: 93.19 kB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/3.54, allocations: 42.06 kB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of SimCode: time 4.4e-07/3.54, allocations: 4 kB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.07559/3.616, allocations: 55.34 MB / 1.055 GB, free: 408.2 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: