Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.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.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8457/0.8457, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002412/0.0002412, allocations: 19.98 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1388, allocations: 31.33 MB / 236 MB, free: 3.895 MB / 186.7 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.TestTank): time 1.569/1.708, allocations: 294.9 MB / 0.5185 GB, free: 7.062 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.508/2.216, allocations: 197.5 MB / 0.7114 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000748/2.217, allocations: 18.56 kB / 0.7114 GB, free: 1.379 MB / 0.5573 GB [/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/ControlValve.mo:44:3-45:68: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/ControlValve.mo:46:3-47:66: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/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/Volumes/Tank.mo:135:3-136:66:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:137:3-138:74:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:142:3-143:68:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:144:3-145:72:writable] Warning: Connector Cs1 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/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). Notification: Performance of NFTyping.typeComponents: time 0.0003803/2.217, allocations: 110.2 kB / 0.7115 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0007074/2.218, allocations: 353.5 kB / 0.7119 GB, free: 1.367 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0325/2.25, allocations: 10.99 MB / 0.7226 GB, free: 0.9883 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001668/2.252, allocations: 1.537 MB / 0.7241 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007727/2.253, allocations: 0.7181 MB / 0.7248 GB, free: 0.6562 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006333/2.254, allocations: 0.5779 MB / 0.7254 GB, free: 0.6406 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006963/2.254, allocations: 0.6793 MB / 0.726 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001343/2.254, allocations: 97.98 kB / 0.7261 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03731/2.292, allocations: 22.69 MB / 0.7483 GB, free: 10.29 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004211/2.292, allocations: 290.7 kB / 0.7486 GB, free: 10.23 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008214/2.293, allocations: 0.6585 MB / 0.7492 GB, free: 10.17 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0347/2.328, allocations: 12.52 MB / 0.7614 GB, free: 3.059 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/2.328, allocations: 0 / 0.7614 GB, free: 3.059 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.283e-06/2.328, allocations: 0 / 0.7614 GB, free: 3.059 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.339e-05/2.328, allocations: 4 kB / 0.7614 GB, free: 3.055 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.008325/2.336, allocations: 3.15 MB / 0.7645 GB, free: 15.86 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/2.336, allocations: 8.031 kB / 0.7645 GB, free: 15.85 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000255/2.336, allocations: 155 kB / 0.7647 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000936/2.337, allocations: 0.6365 MB / 0.7653 GB, free: 15.02 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/2.338, allocations: 120.2 kB / 0.7654 GB, free: 14.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/2.338, allocations: 135.5 kB / 0.7655 GB, free: 14.77 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/2.34, allocations: 1.459 MB / 0.7669 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.393e-05/2.34, allocations: 4 kB / 0.767 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/2.341, allocations: 52 kB / 0.767 GB, free: 13.14 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.449e-05/2.341, allocations: 32 kB / 0.767 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002966/2.344, allocations: 1.327 MB / 0.7683 GB, free: 11.77 MB / 0.5886 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.02686/2.37, allocations: 20.08 MB / 0.7879 GB, free: 5.359 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/2.373, allocations: 0.9646 MB / 0.7889 GB, free: 4.348 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009636/2.374, allocations: 346.3 kB / 0.7892 GB, free: 4.008 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7642/3.138, allocations: 283.8 MB / 1.066 GB, free: 350.7 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/3.138, allocations: 38.75 kB / 1.066 GB, free: 350.7 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=58): time 2.074e-06/3.138, allocations: 4 kB / 1.066 GB, free: 350.7 MB / 0.7917 GB Notification: Performance of matching and sorting (n=58): time 0.006458/3.145, allocations: 1.935 MB / 1.068 GB, free: 349 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/3.145, allocations: 85.67 kB / 1.068 GB, free: 348.9 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007815/3.146, allocations: 0.7938 MB / 1.069 GB, free: 348.3 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/3.146, allocations: 40.27 kB / 1.069 GB, free: 348.3 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.00024/3.146, allocations: 0.598 MB / 1.07 GB, free: 347.9 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/3.146, allocations: 215.2 kB / 1.07 GB, free: 347.7 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/3.146, allocations: 234.4 kB / 1.07 GB, free: 347.5 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 8.519e-05/3.147, allocations: 400 kB / 1.071 GB, free: 347.2 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009202/3.147, allocations: 350.8 kB / 1.071 GB, free: 346.9 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/3.148, allocations: 0.7606 MB / 1.072 GB, free: 346.1 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/3.151, allocations: 1.146 MB / 1.073 GB, free: 345.1 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/3.151, allocations: 4 kB / 1.073 GB, free: 345 MB / 0.7917 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003086/3.154, allocations: 1.391 MB / 1.074 GB, free: 344 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/3.154, allocations: 18.14 kB / 1.074 GB, free: 344 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/3.154, allocations: 12.56 kB / 1.074 GB, free: 344 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004701/3.159, allocations: 0.8728 MB / 1.075 GB, free: 343.2 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007488/3.159, allocations: 226.5 kB / 1.075 GB, free: 343 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/3.161, allocations: 1.054 MB / 1.076 GB, free: 342.1 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009243/3.162, allocations: 174.5 kB / 1.076 GB, free: 342 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/3.162, allocations: 55.73 kB / 1.077 GB, free: 341.9 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (Tank1.Cs1.ftype,Tank1.Cs2.ftype,Tank1.Ce2.ftype,SourceP1.C.ftype,Tank1.fluids[1],PerteDP1.fluid,VanneReglante1.fluid,PuitsP1.fluid,PerteDP2.fluid,PuitsP2.fluid,Tank1.fluid1,SourceP1.fluid1,Tank1.Cs1.diff_on_1,Tank1.Cs2.diff_on_1,Tank1.Ce2.diff_on_2,Tank1.Ce1.diff_on_2,SourceP1.C.diff_on_2,Tank1.Ce2.diff_on_1,VanneReglante1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 101 * 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 {(8,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0003729/3.162, allocations: 276.8 kB / 1.077 GB, free: 341.7 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/3.162, allocations: 90.88 kB / 1.077 GB, free: 341.6 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/3.165, allocations: 1.139 MB / 1.078 GB, free: 340.8 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/3.165, allocations: 15.94 kB / 1.078 GB, free: 340.7 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/3.165, allocations: 3.188 kB / 1.078 GB, free: 340.7 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/3.165, allocations: 3.984 kB / 1.078 GB, free: 340.7 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/3.169, allocations: 2.143 MB / 1.08 GB, free: 339 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/3.169, allocations: 0.8438 kB / 1.08 GB, free: 339 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008157/3.17, allocations: 155.4 kB / 1.08 GB, free: 338.9 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002952/3.173, allocations: 0.5816 MB / 1.081 GB, free: 338.4 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.755e-05/3.173, allocations: 23.8 kB / 1.081 GB, free: 338.3 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/3.175, allocations: 2.499 MB / 1.083 GB, free: 335.9 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/3.175, allocations: 0.75 kB / 1.083 GB, free: 335.9 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0393/3.214, allocations: 17.24 MB / 1.1 GB, free: 319.5 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/3.214, allocations: 252.8 kB / 1.1 GB, free: 319.3 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.195e-05/3.214, allocations: 12 kB / 1.1 GB, free: 319.3 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/3.215, allocations: 60 kB / 1.1 GB, free: 319.2 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/3.215, allocations: 61.78 kB / 1.1 GB, free: 319.1 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/3.215, allocations: 27.36 kB / 1.101 GB, free: 319.1 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0004933/3.216, allocations: 0.5029 MB / 1.101 GB, free: 318.6 MB / 0.7917 GB Notification: Performance of sort global known variables: time 1.6e-07/3.216, allocations: 4 kB / 1.101 GB, free: 318.6 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.006701/3.223, allocations: 3.145 MB / 1.104 GB, free: 315.8 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Tank1.z,Tank1.h) * 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 (38): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(2,8), (2,9), (2,9), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01253/3.235, allocations: 3.868 MB / 1.108 GB, free: 312.6 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.00289/3.238, allocations: 0.9717 MB / 1.109 GB, free: 311.6 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/3.238, allocations: 8.062 kB / 1.109 GB, free: 311.6 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001348/3.239, allocations: 466 kB / 1.109 GB, free: 311.2 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009435/3.24, allocations: 189.4 kB / 1.109 GB, free: 311 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/3.244, allocations: 3.281 MB / 1.113 GB, free: 307.7 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/3.245, allocations: 1.071 MB / 1.114 GB, free: 306.6 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0006646/3.245, allocations: 170.8 kB / 1.114 GB, free: 306.4 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/3.246, allocations: 87.41 kB / 1.114 GB, free: 306.3 MB / 0.7917 GB Notification: Performance of SimCode: time 3.4e-07/3.246, allocations: 0 / 1.114 GB, free: 306.3 MB / 0.7917 GB Notification: Performance of Templates: time 0.08506/3.331, allocations: 88.46 MB / 1.2 GB, free: 218.7 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTank.pipe 2>&1)