Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.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.TestTankHorizontal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8866/0.8866, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 15.84 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06124/0.0616, allocations: 31.35 MB / 269.1 MB, free: 7.023 MB / 222.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.TestTankHorizontal): time 1.682/1.743, allocations: 297.7 MB / 0.5535 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5856/2.329, allocations: 196.4 MB / 0.7453 GB, free: 0.6016 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009405/2.33, allocations: 16.91 kB / 0.7453 GB, free: 0.6016 MB / 0.5919 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/TankHorizontal.mo:136:3-137: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/TankHorizontal.mo:138:3-139: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/TankHorizontal.mo:143:3-144: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/TankHorizontal.mo:145:3-146: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.000467/2.33, allocations: 154.1 kB / 0.7454 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0009049/2.331, allocations: 400.5 kB / 0.7458 GB, free: 0.5859 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0416/2.373, allocations: 14.05 MB / 0.7596 GB, free: 192 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002566/2.375, allocations: 1.685 MB / 0.7612 GB, free: 188 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/2.376, allocations: 0.804 MB / 0.762 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009632/2.377, allocations: 0.6723 MB / 0.7626 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007588/2.378, allocations: 0.7215 MB / 0.7633 GB, free: 80 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001834/2.378, allocations: 151.1 kB / 0.7635 GB, free: 80 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04717/2.426, allocations: 23.08 MB / 0.786 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006171/2.426, allocations: 345.9 kB / 0.7864 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001206/2.427, allocations: 0.7056 MB / 0.787 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.04034/2.468, allocations: 12.62 MB / 0.7994 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/2.468, allocations: 0 / 0.7994 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.334e-06/2.468, allocations: 0 / 0.7994 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.798e-05/2.468, allocations: 0 / 0.7994 GB, free: 5.656 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.009513/2.477, allocations: 3.1 MB / 0.8024 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/2.478, allocations: 12.03 kB / 0.8024 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004724/2.478, allocations: 154.2 kB / 0.8026 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/2.479, allocations: 0.6705 MB / 0.8032 GB, free: 1.961 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/2.479, allocations: 128.1 kB / 0.8033 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/2.48, allocations: 128 kB / 0.8035 GB, free: 1.703 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002695/2.483, allocations: 1.37 MB / 0.8048 GB, free: 272 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/2.483, allocations: 6.625 kB / 0.8048 GB, free: 268 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/2.483, allocations: 52 kB / 0.8048 GB, free: 216 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.952e-05/2.483, allocations: 32 kB / 0.8049 GB, free: 184 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/2.486, allocations: 1.313 MB / 0.8062 GB, free: 14.87 MB / 0.6231 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.02748/2.513, allocations: 19.09 MB / 0.8248 GB, free: 9.582 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/2.515, allocations: 0.7652 MB / 0.8255 GB, free: 8.809 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007749/2.516, allocations: 346.4 kB / 0.8259 GB, free: 8.469 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9211/3.437, allocations: 352.7 MB / 1.17 GB, free: 320.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/3.437, allocations: 42.44 kB / 1.17 GB, free: 320.2 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=66): time 3.216e-06/3.437, allocations: 0 / 1.17 GB, free: 320.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=68): time 0.008135/3.445, allocations: 3.175 MB / 1.173 GB, free: 317.7 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/3.445, allocations: 59.97 kB / 1.173 GB, free: 317.6 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007811/3.446, allocations: 0.7743 MB / 1.174 GB, free: 317 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/3.446, allocations: 40.86 kB / 1.174 GB, free: 317 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/3.446, allocations: 0.5704 MB / 1.175 GB, free: 316.5 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/3.447, allocations: 244.6 kB / 1.175 GB, free: 316.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/3.447, allocations: 241.6 kB / 1.175 GB, free: 316.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.698e-05/3.447, allocations: 392.5 kB / 1.176 GB, free: 315.8 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/3.448, allocations: 350.8 kB / 1.176 GB, free: 315.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/3.448, allocations: 0.7041 MB / 1.177 GB, free: 314.9 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/3.45, allocations: 1.093 MB / 1.178 GB, free: 313.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/3.45, allocations: 4 kB / 1.178 GB, free: 313.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003204/3.453, allocations: 1.55 MB / 1.179 GB, free: 312.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/3.453, allocations: 12 kB / 1.179 GB, free: 312.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/3.453, allocations: 12 kB / 1.179 GB, free: 312.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005144/3.458, allocations: 0.9713 MB / 1.18 GB, free: 311.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/3.459, allocations: 189.7 kB / 1.18 GB, free: 311.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002704/3.462, allocations: 3.205 MB / 1.184 GB, free: 308.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008835/3.463, allocations: 66.86 kB / 1.184 GB, free: 308.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/3.463, allocations: 65.89 kB / 1.184 GB, free: 308.5 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 19 (Tank1.Cs1.ftype,Tank1.Cs2.ftype,Tank1.Ce2.ftype,Tank1.Ce2.diff_on_1,SourceP1.C.ftype,Tank1.fluids[1],VanneReglante1.C2.diff_on_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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(3,1), (2,5), (2,6), (2,6), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004628/3.463, allocations: 274.9 kB / 1.184 GB, free: 308.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/3.463, allocations: 98.88 kB / 1.184 GB, free: 308.2 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00348/3.467, allocations: 1.332 MB / 1.185 GB, free: 307.2 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/3.467, allocations: 3.984 kB / 1.185 GB, free: 307.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/3.467, allocations: 0.5625 kB / 1.185 GB, free: 307.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003978/3.467, allocations: 234.4 kB / 1.186 GB, free: 307 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/3.467, allocations: 19.12 kB / 1.186 GB, free: 307 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005706/3.468, allocations: 44.64 kB / 1.186 GB, free: 306.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/3.468, allocations: 68.38 kB / 1.186 GB, free: 306.9 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003922/3.472, allocations: 1.325 MB / 1.187 GB, free: 305.6 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002332/3.474, allocations: 1.341 MB / 1.188 GB, free: 304.3 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000607/3.475, allocations: 322.7 kB / 1.189 GB, free: 304 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005662/3.476, allocations: 0.4912 MB / 1.189 GB, free: 303.5 MB / 0.8419 GB Notification: Performance of Backend: time 7.52e-07/3.476, allocations: 3.188 kB / 1.189 GB, free: 303.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01912/3.495, allocations: 5.063 MB / 1.194 GB, free: 299.3 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003542/3.498, allocations: 2.567 MB / 1.197 GB, free: 296.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.1023/3.601, allocations: 92.62 MB / 1.287 GB, free: 205 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestTankHorizontal.pipe 2>&1)