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.8659/0.8659, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003817, allocations: 13.39 kB / 237.8 MB, free: 1.785 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05787/0.05827, allocations: 31.36 MB / 269.1 MB, free: 7.035 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.TestTank): time 1.795/1.853, allocations: 297.8 MB / 0.5536 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5663/2.419, allocations: 196.4 MB / 0.7454 GB, free: 0.5859 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006653/2.42, allocations: 20.69 kB / 0.7454 GB, free: 0.5859 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/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.0004078/2.421, allocations: 152.7 kB / 0.7455 GB, free: 0.5859 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000729/2.421, allocations: 400.4 kB / 0.7459 GB, free: 0.5742 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.03608/2.457, allocations: 14.3 MB / 0.7599 GB, free: 184 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001983/2.459, allocations: 1.598 MB / 0.7614 GB, free: 180 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00079/2.46, allocations: 0.7735 MB / 0.7622 GB, free: 68 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008192/2.461, allocations: 0.634 MB / 0.7628 GB, free: 68 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007911/2.462, allocations: 0.7071 MB / 0.7635 GB, free: 68 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001854/2.462, allocations: 144.7 kB / 0.7636 GB, free: 64 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04302/2.505, allocations: 22.55 MB / 0.7857 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004325/2.505, allocations: 345.2 kB / 0.786 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0009229/2.506, allocations: 0.7014 MB / 0.7867 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02907/2.535, allocations: 12.33 MB / 0.7987 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/2.536, allocations: 0 / 0.7987 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.665e-06/2.536, allocations: 4 kB / 0.7987 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.104e-05/2.536, allocations: 2.625 kB / 0.7987 GB, free: 5.957 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.009614/2.545, allocations: 3.148 MB / 0.8018 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/2.545, allocations: 12.03 kB / 0.8018 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/2.546, allocations: 158.2 kB / 0.802 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/2.547, allocations: 0.6646 MB / 0.8026 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/2.547, allocations: 120.2 kB / 0.8027 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002744/2.547, allocations: 128 kB / 0.8029 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/2.55, allocations: 1.463 MB / 0.8043 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/2.55, allocations: 2.531 kB / 0.8043 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/2.55, allocations: 59.94 kB / 0.8043 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/2.55, allocations: 28 kB / 0.8044 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003054/2.553, allocations: 1.328 MB / 0.8057 GB, free: 15.24 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.02967/2.583, allocations: 20.07 MB / 0.8253 GB, free: 8.906 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/2.586, allocations: 0.961 MB / 0.8262 GB, free: 7.906 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009978/2.587, allocations: 353 kB / 0.8265 GB, free: 7.562 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9781/3.565, allocations: 285.7 MB / 1.106 GB, free: 186.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/3.565, allocations: 42.86 kB / 1.106 GB, free: 186.7 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=58): time 3.616e-06/3.565, allocations: 0 / 1.106 GB, free: 186.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=58): time 0.00693/3.572, allocations: 1.932 MB / 1.107 GB, free: 185 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/3.572, allocations: 85.67 kB / 1.108 GB, free: 184.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009896/3.573, allocations: 0.7926 MB / 1.108 GB, free: 184.3 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.621e-05/3.573, allocations: 37.58 kB / 1.108 GB, free: 184.3 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/3.573, allocations: 0.604 MB / 1.109 GB, free: 183.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/3.573, allocations: 210 kB / 1.109 GB, free: 183.7 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/3.574, allocations: 236.3 kB / 1.109 GB, free: 183.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001034/3.574, allocations: 390 kB / 1.11 GB, free: 183.2 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009566/3.575, allocations: 352.9 kB / 1.11 GB, free: 183 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/3.576, allocations: 0.7643 MB / 1.111 GB, free: 182.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/3.578, allocations: 1.143 MB / 1.112 GB, free: 181.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.762e-05/3.578, allocations: 4 kB / 1.112 GB, free: 181.1 MB / 0.8419 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003227/3.581, allocations: 1.393 MB / 1.113 GB, free: 180.1 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/3.581, allocations: 15 kB / 1.113 GB, free: 180.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/3.581, allocations: 16.03 kB / 1.113 GB, free: 180 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005107/3.586, allocations: 0.8758 MB / 1.114 GB, free: 179.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/3.587, allocations: 219.6 kB / 1.114 GB, free: 179 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/3.589, allocations: 1.061 MB / 1.115 GB, free: 178.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009798/3.59, allocations: 171.9 kB / 1.116 GB, free: 178 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.071e-05/3.59, allocations: 59.28 kB / 1.116 GB, free: 177.9 MB / 0.8419 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.0004438/3.59, allocations: 274 kB / 1.116 GB, free: 177.8 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001859/3.59, allocations: 94.88 kB / 1.116 GB, free: 177.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/3.594, allocations: 1.138 MB / 1.117 GB, free: 176.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/3.594, allocations: 7.984 kB / 1.117 GB, free: 176.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/3.594, allocations: 0 / 1.117 GB, free: 176.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/3.594, allocations: 243.3 kB / 1.117 GB, free: 176.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/3.594, allocations: 13.81 kB / 1.117 GB, free: 176.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/3.595, allocations: 63.12 kB / 1.117 GB, free: 176.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/3.595, allocations: 63.09 kB / 1.118 GB, free: 176.5 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003832/3.599, allocations: 1.132 MB / 1.119 GB, free: 175.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003005/3.602, allocations: 1.324 MB / 1.12 GB, free: 174.4 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008587/3.603, allocations: 306.9 kB / 1.12 GB, free: 174.2 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005944/3.603, allocations: 0.509 MB / 1.121 GB, free: 173.8 MB / 0.8419 GB Notification: Performance of Backend: time 4.91e-07/3.603, allocations: 0 / 1.121 GB, free: 173.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01942/3.623, allocations: 4.866 MB / 1.125 GB, free: 170.1 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003673/3.627, allocations: 2.555 MB / 1.128 GB, free: 167.6 MB / 0.8419 GB Notification: Performance of Templates: time 0.1064/3.733, allocations: 90.62 MB / 1.216 GB, free: 77.25 MB / 0.8419 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)