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.9225/0.9225, allocations: 150.9 MB / 166 MB, free: 14.7 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003361, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1729, allocations: 31.33 MB / 235.4 MB, free: 5.434 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.SimpleExamples.TestTank): time 1.703/1.876, allocations: 295.6 MB / 0.5185 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5965/2.472, allocations: 197.6 MB / 0.7114 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006811/2.473, allocations: 18.75 kB / 0.7115 GB, free: 3.43 MB / 0.5762 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.0004584/2.473, allocations: 112.2 kB / 0.7116 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008061/2.474, allocations: 351.9 kB / 0.7119 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03842/2.512, allocations: 10.98 MB / 0.7226 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00231/2.515, allocations: 1.524 MB / 0.7241 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009281/2.516, allocations: 0.7071 MB / 0.7248 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009085/2.517, allocations: 0.5775 MB / 0.7254 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007075/2.517, allocations: 0.6805 MB / 0.726 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001505/2.518, allocations: 103.1 kB / 0.7261 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04716/2.565, allocations: 22.67 MB / 0.7483 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006333/2.565, allocations: 297 kB / 0.7485 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001358/2.567, allocations: 0.6572 MB / 0.7492 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04606/2.613, allocations: 12.57 MB / 0.7615 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/2.613, allocations: 0 / 0.7615 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.294e-06/2.613, allocations: 2.906 kB / 0.7615 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.003e-05/2.613, allocations: 0 / 0.7615 GB, free: 12.7 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.01092/2.624, allocations: 3.151 MB / 0.7645 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/2.624, allocations: 10.16 kB / 0.7646 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003793/2.624, allocations: 149.1 kB / 0.7647 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/2.625, allocations: 0.6363 MB / 0.7653 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/2.626, allocations: 125.1 kB / 0.7654 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003128/2.626, allocations: 139.8 kB / 0.7656 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/2.629, allocations: 1.452 MB / 0.767 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/2.629, allocations: 4.844 kB / 0.767 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/2.629, allocations: 56.03 kB / 0.767 GB, free: 9.703 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/2.629, allocations: 32.09 kB / 0.7671 GB, free: 9.703 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/2.632, allocations: 1.325 MB / 0.7684 GB, free: 9.473 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.02631/2.658, allocations: 20.09 MB / 0.788 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/2.66, allocations: 0.9557 MB / 0.7889 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008449/2.661, allocations: 351.8 kB / 0.7893 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7166/3.378, allocations: 283.9 MB / 1.066 GB, free: 385.4 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/3.378, allocations: 40.56 kB / 1.067 GB, free: 385.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=58): time 3.246e-06/3.378, allocations: 0 / 1.067 GB, free: 385.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=58): time 0.006385/3.384, allocations: 1.938 MB / 1.068 GB, free: 383.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/3.384, allocations: 85.67 kB / 1.068 GB, free: 383.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009632/3.385, allocations: 0.8046 MB / 1.069 GB, free: 383 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/3.385, allocations: 37.45 kB / 1.069 GB, free: 382.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000369/3.386, allocations: 0.5891 MB / 1.07 GB, free: 382.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/3.386, allocations: 217.4 kB / 1.07 GB, free: 382.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/3.386, allocations: 229.8 kB / 1.07 GB, free: 382.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001551/3.386, allocations: 393.5 kB / 1.071 GB, free: 381.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008983/3.387, allocations: 353.8 kB / 1.071 GB, free: 381.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/3.388, allocations: 0.7599 MB / 1.072 GB, free: 380.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/3.391, allocations: 1.152 MB / 1.073 GB, free: 379.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/3.391, allocations: 5.25 kB / 1.073 GB, free: 379.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003259/3.394, allocations: 1.391 MB / 1.074 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/3.394, allocations: 8 kB / 1.074 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/3.394, allocations: 16 kB / 1.074 GB, free: 378.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004951/3.399, allocations: 0.8778 MB / 1.075 GB, free: 377.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007934/3.4, allocations: 223.8 kB / 1.075 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/3.401, allocations: 1.058 MB / 1.076 GB, free: 376.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009876/3.402, allocations: 173.8 kB / 1.077 GB, free: 376.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.13e-05/3.402, allocations: 59.61 kB / 1.077 GB, free: 376.6 MB / 0.8106 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.0004397/3.403, allocations: 275.1 kB / 1.077 GB, free: 376.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/3.403, allocations: 92.05 kB / 1.077 GB, free: 376.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002926/3.406, allocations: 1.148 MB / 1.078 GB, free: 375.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/3.406, allocations: 8 kB / 1.078 GB, free: 375.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/3.406, allocations: 0 / 1.078 GB, free: 375.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/3.406, allocations: 11.92 kB / 1.078 GB, free: 375.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/3.41, allocations: 2.13 MB / 1.08 GB, free: 373.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/3.41, allocations: 0 / 1.08 GB, free: 373.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007533/3.41, allocations: 155.5 kB / 1.08 GB, free: 373.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002881/3.413, allocations: 0.5847 MB / 1.081 GB, free: 373 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/3.413, allocations: 16.11 kB / 1.081 GB, free: 373 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/3.415, allocations: 2.503 MB / 1.083 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/3.415, allocations: 4.031 kB / 1.083 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003536/3.419, allocations: 1.517 MB / 1.085 GB, free: 369.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003752/3.419, allocations: 246.8 kB / 1.085 GB, free: 369.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/3.419, allocations: 11.62 kB / 1.085 GB, free: 369.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006022/3.42, allocations: 64.39 kB / 1.085 GB, free: 369.2 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/3.42, allocations: 56.17 kB / 1.085 GB, free: 369.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/3.42, allocations: 27.36 kB / 1.085 GB, free: 369.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005641/3.42, allocations: 0.5096 MB / 1.086 GB, free: 368.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.243e-06/3.42, allocations: 0 / 1.086 GB, free: 368.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006055/3.427, allocations: 2.019 MB / 1.088 GB, free: 367.1 MB / 0.8106 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.00973/3.436, allocations: 2.951 MB / 1.091 GB, free: 364.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002936/3.439, allocations: 0.9766 MB / 1.092 GB, free: 364 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/3.439, allocations: 4.125 kB / 1.092 GB, free: 364 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001293/3.441, allocations: 475.5 kB / 1.092 GB, free: 363.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/3.442, allocations: 186.7 kB / 1.092 GB, free: 363.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/3.445, allocations: 2.274 MB / 1.094 GB, free: 361.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/3.445, allocations: 1.052 MB / 1.095 GB, free: 360.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005455/3.446, allocations: 148.3 kB / 1.096 GB, free: 360.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/3.446, allocations: 71.05 kB / 1.096 GB, free: 360.1 MB / 0.8106 GB Notification: Performance of SimCode: time 7.22e-07/3.446, allocations: 0 / 1.096 GB, free: 360.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.07352/3.519, allocations: 62.01 MB / 1.156 GB, free: 298.9 MB / 0.8106 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)