Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8437/0.8437, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002894, allocations: 15.98 kB / 204 MB, free: 10.12 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1527, allocations: 31.32 MB / 235.3 MB, free: 5.473 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.Examples.SimpleExamples.TestControlValve): time 1.521/1.674, allocations: 292.7 MB / 0.5157 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04493/1.719, allocations: 37.91 MB / 0.5527 GB, free: 8.035 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/1.719, allocations: 7.938 kB / 0.5527 GB, free: 8.027 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004119/1.719, allocations: 128.5 kB / 0.5528 GB, free: 7.902 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/1.72, allocations: 143.2 kB / 0.553 GB, free: 7.762 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01875/1.738, allocations: 7.269 MB / 0.5601 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004807/1.739, allocations: 366.4 kB / 0.5604 GB, free: 136 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/1.739, allocations: 122.6 kB / 0.5605 GB, free: 16 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/1.739, allocations: 155.3 kB / 0.5607 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/1.74, allocations: 163.3 kB / 0.5608 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/1.74, allocations: 12 kB / 0.5609 GB, free: 15.69 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02573/1.765, allocations: 17.81 MB / 0.5783 GB, free: 13.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/1.765, allocations: 75.69 kB / 0.5783 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/1.766, allocations: 155 kB / 0.5785 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01707/1.783, allocations: 8.531 MB / 0.5868 GB, free: 5.082 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/1.783, allocations: 0 / 0.5868 GB, free: 5.082 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.61e-07/1.783, allocations: 0 / 0.5868 GB, free: 5.082 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/1.783, allocations: 0 / 0.5868 GB, free: 5.082 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003684/1.787, allocations: 1.528 MB / 0.5883 GB, free: 3.504 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/1.787, allocations: 8.031 kB / 0.5883 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.128e-05/1.787, allocations: 47.38 kB / 0.5883 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/1.787, allocations: 286.2 kB / 0.5886 GB, free: 3.133 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/1.787, allocations: 16.44 kB / 0.5886 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/1.787, allocations: 20 kB / 0.5887 GB, free: 3.094 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/1.787, allocations: 319.4 kB / 0.589 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/1.787, allocations: 4 kB / 0.589 GB, free: 2.754 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/1.787, allocations: 8 kB / 0.589 GB, free: 2.746 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/1.787, allocations: 15.98 kB / 0.589 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/1.788, allocations: 213 kB / 0.5892 GB, free: 2.523 MB / 478.1 MB 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.03373/1.821, allocations: 18.11 MB / 0.6069 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/1.822, allocations: 142.5 kB / 0.607 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/1.822, allocations: 112.8 kB / 0.6071 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1412/1.963, allocations: 77.28 MB / 0.6826 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/1.963, allocations: 30.56 kB / 0.6826 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.174e-06/1.963, allocations: 0 / 0.6826 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001158/1.964, allocations: 0.4953 MB / 0.6831 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/1.964, allocations: 51.41 kB / 0.6832 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/1.965, allocations: 352.5 kB / 0.6835 GB, free: 7.246 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/1.965, allocations: 33.69 kB / 0.6835 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/1.965, allocations: 184.4 kB / 0.6837 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/1.965, allocations: 110.4 kB / 0.6838 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.882e-05/1.965, allocations: 53.59 kB / 0.6839 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.965, allocations: 342.8 kB / 0.6842 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/1.965, allocations: 99.89 kB / 0.6843 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/1.966, allocations: 136.1 kB / 0.6844 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/1.966, allocations: 252.5 kB / 0.6846 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/1.966, allocations: 0 / 0.6846 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004644/1.966, allocations: 341.6 kB / 0.685 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/1.966, allocations: 8 kB / 0.685 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/1.966, allocations: 4 kB / 0.685 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008275/1.967, allocations: 137.9 kB / 0.6851 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/1.967, allocations: 15.94 kB / 0.6851 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000531/1.968, allocations: 0.6147 MB / 0.6857 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/1.968, allocations: 27.62 kB / 0.6858 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/1.968, allocations: 8 kB / 0.6858 GB, free: 4.82 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001495/1.968, allocations: 154 kB / 0.6859 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/1.968, allocations: 35.56 kB / 0.6859 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008012/1.969, allocations: 0.6589 MB / 0.6866 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004325/1.969, allocations: 257.9 kB / 0.6868 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.969, allocations: 0 / 0.6868 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/1.969, allocations: 0 / 0.6868 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/1.971, allocations: 0.8272 MB / 0.6876 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.971, allocations: 0 / 0.6876 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.069e-05/1.971, allocations: 24.91 kB / 0.6877 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005158/1.971, allocations: 121.7 kB / 0.6878 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/1.971, allocations: 8 kB / 0.6878 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005343/1.972, allocations: 0.6304 MB / 0.6884 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.972, allocations: 0 / 0.6884 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/1.972, allocations: 397.8 kB / 0.6888 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/1.972, allocations: 120.7 kB / 0.6889 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/1.972, allocations: 7.906 kB / 0.6889 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/1.973, allocations: 7.984 kB / 0.6889 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/1.973, allocations: 15.86 kB / 0.6889 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/1.973, allocations: 4 kB / 0.6889 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003468/1.973, allocations: 339.1 kB / 0.6893 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.973, allocations: 0 / 0.6893 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.167/2.14, allocations: 1.195 MB / 0.6904 GB, free: 226.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00582/2.146, allocations: 1.805 MB / 0.6922 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007537/2.147, allocations: 273.8 kB / 0.6924 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/2.147, allocations: 0 / 0.6924 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002896/2.147, allocations: 114.7 kB / 0.6926 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007949/2.148, allocations: 125.4 kB / 0.6927 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000986/2.149, allocations: 0.7794 MB / 0.6934 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/2.149, allocations: 0.8057 MB / 0.6942 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001249/2.149, allocations: 32.03 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.913e-05/2.149, allocations: 26.62 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/2.149, allocations: 1.781 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.04669/2.196, allocations: 43.08 MB / 0.7364 GB, free: 204 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)