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.9052/0.9052, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.935e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2224, allocations: 31.97 MB / 236.8 MB, free: 5.676 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.SimpleExamples.TestSwitchValve): time 1.841/2.063, allocations: 294.8 MB / 0.5191 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6877/2.751, allocations: 192.7 MB / 0.7073 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006824/2.751, allocations: 12.38 kB / 0.7074 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001895/2.752, allocations: 54.3 kB / 0.7074 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006867/2.752, allocations: 206.6 kB / 0.7076 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0413/2.794, allocations: 10.46 MB / 0.7178 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001447/2.795, allocations: 0.8047 MB / 0.7186 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005171/2.796, allocations: 360.2 kB / 0.719 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004206/2.796, allocations: 270.5 kB / 0.7192 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003569/2.796, allocations: 327.2 kB / 0.7195 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.474e-05/2.797, allocations: 34.28 kB / 0.7196 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05139/2.848, allocations: 22.51 MB / 0.7415 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000392/2.848, allocations: 132.6 kB / 0.7417 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006971/2.849, allocations: 370.6 kB / 0.742 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04411/2.893, allocations: 11.71 MB / 0.7534 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/2.893, allocations: 0 / 0.7534 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.516e-06/2.893, allocations: 0 / 0.7534 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.316e-05/2.893, allocations: 0 / 0.7534 GB, free: 13.57 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.009768/2.903, allocations: 2.287 MB / 0.7557 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/2.903, allocations: 9.406 kB / 0.7557 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004172/2.904, allocations: 88.69 kB / 0.7558 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009316/2.905, allocations: 441.3 kB / 0.7562 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/2.905, allocations: 79.42 kB / 0.7563 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/2.905, allocations: 68.53 kB / 0.7563 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/2.907, allocations: 0.7078 MB / 0.757 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/2.907, allocations: 5.062 kB / 0.757 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/2.907, allocations: 27.88 kB / 0.7571 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/2.907, allocations: 18.12 kB / 0.7571 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/2.908, allocations: 0.6031 MB / 0.7577 GB, free: 11.35 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.01237/2.92, allocations: 7.5 MB / 0.765 GB, free: 5.141 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009538/2.921, allocations: 385.1 kB / 0.7654 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/2.922, allocations: 146.8 kB / 0.7655 GB, free: 5.055 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6949/3.616, allocations: 223.7 MB / 0.984 GB, free: 453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005723/3.617, allocations: 226.4 kB / 0.9842 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 3.526e-06/3.617, allocations: 0.8438 kB / 0.9842 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.003058/3.62, allocations: 0.9218 MB / 0.9851 GB, free: 452.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/3.62, allocations: 112.3 kB / 0.9852 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005612/3.621, allocations: 459.9 kB / 0.9856 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/3.621, allocations: 31.23 kB / 0.9857 GB, free: 452.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/3.621, allocations: 341.2 kB / 0.986 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.808e-05/3.621, allocations: 128.8 kB / 0.9861 GB, free: 452.3 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/3.621, allocations: 56.53 kB / 0.9862 GB, free: 452.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001034/3.621, allocations: 353.5 kB / 0.9865 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/3.622, allocations: 131.5 kB / 0.9866 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/3.622, allocations: 246.6 kB / 0.9869 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005041/3.627, allocations: 1.361 MB / 0.9882 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/3.627, allocations: 1.188 kB / 0.9882 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009635/3.628, allocations: 0.6032 MB / 0.9888 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/3.628, allocations: 31.77 kB / 0.9888 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/3.628, allocations: 6 kB / 0.9888 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002124/3.63, allocations: 435 kB / 0.9892 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/3.63, allocations: 83.61 kB / 0.9893 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006263/3.631, allocations: 0.7396 MB / 0.99 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/3.631, allocations: 52.97 kB / 0.9901 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/3.632, allocations: 28.41 kB / 0.9901 GB, free: 450.8 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.0003581/3.632, allocations: 231.1 kB / 0.9903 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.968e-05/3.632, allocations: 47.62 kB / 0.9904 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/3.633, allocations: 0.5925 MB / 0.991 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/3.633, allocations: 2.344 kB / 0.991 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/3.633, allocations: 3.625 kB / 0.991 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/3.633, allocations: 7.359 kB / 0.991 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000664/3.634, allocations: 0.5627 MB / 0.9915 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/3.634, allocations: 0 / 0.9915 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/3.634, allocations: 41.69 kB / 0.9916 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/3.636, allocations: 399.5 kB / 0.992 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/3.636, allocations: 14.53 kB / 0.992 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005814/3.636, allocations: 0.7499 MB / 0.9927 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/3.636, allocations: 5.938 kB / 0.9927 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008553/3.637, allocations: 0.526 MB / 0.9932 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/3.637, allocations: 184.8 kB / 0.9934 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/3.638, allocations: 11.31 kB / 0.9934 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/3.638, allocations: 14.72 kB / 0.9934 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/3.638, allocations: 27.25 kB / 0.9934 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/3.638, allocations: 20.09 kB / 0.9935 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003434/3.638, allocations: 329.6 kB / 0.9938 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/3.638, allocations: 0 / 0.9938 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006356/3.645, allocations: 1.877 MB / 0.9956 GB, free: 449.3 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.00994/3.655, allocations: 2.902 MB / 0.9984 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001122/3.656, allocations: 434.1 kB / 0.9989 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/3.656, allocations: 0 / 0.9989 GB, free: 449 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004319/3.656, allocations: 250.4 kB / 0.9991 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/3.657, allocations: 109.3 kB / 0.9992 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/3.659, allocations: 1.265 MB / 1 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/3.659, allocations: 0.8809 MB / 1.001 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002999/3.66, allocations: 82.66 kB / 1.001 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/3.66, allocations: 40.08 kB / 1.001 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of SimCode: time 4.6e-07/3.66, allocations: 3.938 kB / 1.001 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of Templates: time 0.07463/3.734, allocations: 55.34 MB / 1.055 GB, free: 408.7 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: