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.8153/0.8153, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003779, allocations: 14.83 kB / 237.8 MB, free: 1.762 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06126/0.06165, allocations: 31.34 MB / 269.1 MB, free: 7.047 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.733/1.795, allocations: 297.8 MB / 0.5536 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5927/2.387, allocations: 196.4 MB / 0.7454 GB, free: 0.6016 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006008/2.388, allocations: 17.25 kB / 0.7454 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.0003961/2.388, allocations: 159.3 kB / 0.7456 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00079/2.389, allocations: 398.2 kB / 0.746 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.03721/2.426, allocations: 14.32 MB / 0.76 GB, free: 192 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002384/2.429, allocations: 1.69 MB / 0.7616 GB, free: 188 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009641/2.43, allocations: 0.8071 MB / 0.7624 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009052/2.431, allocations: 0.6692 MB / 0.7631 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008579/2.431, allocations: 0.7212 MB / 0.7638 GB, free: 80 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001864/2.432, allocations: 150 kB / 0.7639 GB, free: 80 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04482/2.476, allocations: 23.08 MB / 0.7864 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006897/2.477, allocations: 346.7 kB / 0.7868 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001741/2.479, allocations: 0.7099 MB / 0.7875 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.04153/2.52, allocations: 12.65 MB / 0.7998 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/2.521, allocations: 0 / 0.7998 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/2.521, allocations: 2.625 kB / 0.7998 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.615e-05/2.521, allocations: 0 / 0.7998 GB, free: 5.469 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.009255/2.53, allocations: 3.214 MB / 0.803 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/2.53, allocations: 8.031 kB / 0.803 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004885/2.53, allocations: 163.1 kB / 0.8031 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/2.532, allocations: 0.6774 MB / 0.8038 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/2.532, allocations: 128.1 kB / 0.8039 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003475/2.532, allocations: 124 kB / 0.804 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/2.535, allocations: 1.38 MB / 0.8054 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/2.535, allocations: 0 / 0.8054 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/2.535, allocations: 52 kB / 0.8054 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/2.535, allocations: 32 kB / 0.8055 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002694/2.538, allocations: 1.314 MB / 0.8067 GB, free: 14.43 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.02718/2.565, allocations: 19.11 MB / 0.8254 GB, free: 9.121 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00209/2.567, allocations: 0.7677 MB / 0.8261 GB, free: 8.348 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008051/2.568, allocations: 342.4 kB / 0.8265 GB, free: 8.012 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9091/3.477, allocations: 352.7 MB / 1.171 GB, free: 319.6 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/3.477, allocations: 43.06 kB / 1.171 GB, free: 319.6 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=66): time 4.148e-06/3.477, allocations: 0 / 1.171 GB, free: 319.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=68): time 0.008347/3.486, allocations: 3.201 MB / 1.174 GB, free: 317.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.152e-05/3.486, allocations: 59.97 kB / 1.174 GB, free: 317 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000775/3.486, allocations: 0.7726 MB / 1.175 GB, free: 316.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/3.486, allocations: 41.52 kB / 1.175 GB, free: 316.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/3.487, allocations: 0.5851 MB / 1.175 GB, free: 316 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/3.487, allocations: 258.7 kB / 1.176 GB, free: 315.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/3.487, allocations: 240.4 kB / 1.176 GB, free: 315.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.867e-05/3.487, allocations: 390.1 kB / 1.176 GB, free: 315.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007113/3.488, allocations: 350.8 kB / 1.177 GB, free: 315 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/3.489, allocations: 0.7044 MB / 1.177 GB, free: 314.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/3.49, allocations: 1.094 MB / 1.178 GB, free: 313.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/3.49, allocations: 5.75 kB / 1.178 GB, free: 313.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003284/3.494, allocations: 1.552 MB / 1.18 GB, free: 312.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/3.494, allocations: 12.47 kB / 1.18 GB, free: 312.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/3.494, allocations: 17.72 kB / 1.18 GB, free: 312.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005522/3.499, allocations: 0.9745 MB / 1.181 GB, free: 311.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/3.5, allocations: 190.6 kB / 1.181 GB, free: 311.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/3.502, allocations: 3.208 MB / 1.184 GB, free: 308 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007693/3.503, allocations: 59.52 kB / 1.184 GB, free: 308 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/3.503, allocations: 55.23 kB / 1.184 GB, free: 307.9 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.0003535/3.504, allocations: 284.5 kB / 1.185 GB, free: 307.7 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/3.504, allocations: 103.3 kB / 1.185 GB, free: 307.6 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/3.507, allocations: 1.33 MB / 1.186 GB, free: 306.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/3.507, allocations: 5.203 kB / 1.186 GB, free: 306.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/3.507, allocations: 0 / 1.186 GB, free: 306.6 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/3.508, allocations: 250.4 kB / 1.186 GB, free: 306.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/3.508, allocations: 15.81 kB / 1.186 GB, free: 306.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005302/3.508, allocations: 40.27 kB / 1.186 GB, free: 306.4 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/3.508, allocations: 68.19 kB / 1.186 GB, free: 306.3 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003942/3.512, allocations: 1.322 MB / 1.188 GB, free: 305.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002284/3.515, allocations: 1.357 MB / 1.189 GB, free: 303.7 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006403/3.515, allocations: 320 kB / 1.189 GB, free: 303.4 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004819/3.516, allocations: 499 kB / 1.19 GB, free: 302.9 MB / 0.8419 GB Notification: Performance of Backend: time 5.21e-07/3.516, allocations: 0 / 1.19 GB, free: 302.9 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0181/3.534, allocations: 5.103 MB / 1.195 GB, free: 298.6 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002744/3.537, allocations: 2.611 MB / 1.197 GB, free: 296 MB / 0.8419 GB Notification: Performance of Templates: time 0.09231/3.629, allocations: 92.62 MB / 1.288 GB, free: 204.2 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)