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.8484/0.8484, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.000377, allocations: 18.41 kB / 237.8 MB, free: 1.781 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05875/0.05915, allocations: 31.35 MB / 269.1 MB, free: 7.031 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.658/1.717, allocations: 297.7 MB / 0.5535 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4976/2.215, allocations: 196.4 MB / 0.7453 GB, free: 0.5664 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006406/2.215, allocations: 16.69 kB / 0.7453 GB, free: 0.5664 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.0004164/2.216, allocations: 161 kB / 0.7455 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0007449/2.216, allocations: 395.5 kB / 0.7458 GB, free: 0.5547 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.0315/2.248, allocations: 14.04 MB / 0.7596 GB, free: 164 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001648/2.25, allocations: 1.591 MB / 0.7611 GB, free: 160 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007073/2.25, allocations: 0.7747 MB / 0.7619 GB, free: 48 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006434/2.251, allocations: 0.6395 MB / 0.7625 GB, free: 44 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006452/2.252, allocations: 0.7025 MB / 0.7632 GB, free: 44 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001626/2.252, allocations: 143.9 kB / 0.7633 GB, free: 44 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04126/2.293, allocations: 22.56 MB / 0.7853 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005338/2.294, allocations: 346.4 kB / 0.7857 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001148/2.295, allocations: 0.7002 MB / 0.7864 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03509/2.33, allocations: 12.33 MB / 0.7984 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/2.33, allocations: 3.984 kB / 0.7984 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/2.33, allocations: 2.688 kB / 0.7984 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.362e-05/2.33, allocations: 0 / 0.7984 GB, free: 6.094 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.009304/2.339, allocations: 3.156 MB / 0.8015 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/2.339, allocations: 8.031 kB / 0.8015 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/2.34, allocations: 150.3 kB / 0.8016 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/2.341, allocations: 0.6678 MB / 0.8023 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/2.341, allocations: 128.2 kB / 0.8024 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/2.341, allocations: 128 kB / 0.8025 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/2.344, allocations: 1.453 MB / 0.804 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/2.344, allocations: 10.53 kB / 0.804 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/2.344, allocations: 54.62 kB / 0.804 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.671e-05/2.344, allocations: 32 kB / 0.804 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002921/2.347, allocations: 1.319 MB / 0.8053 GB, free: 15.51 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.02742/2.374, allocations: 20.07 MB / 0.8249 GB, free: 9.18 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002527/2.377, allocations: 0.9609 MB / 0.8259 GB, free: 8.176 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009438/2.378, allocations: 353 kB / 0.8262 GB, free: 7.832 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.795/3.173, allocations: 285.7 MB / 1.105 GB, free: 391.4 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/3.173, allocations: 39.06 kB / 1.105 GB, free: 391.3 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=58): time 3.276e-06/3.173, allocations: 4 kB / 1.105 GB, free: 391.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=58): time 0.006334/3.179, allocations: 1.936 MB / 1.107 GB, free: 389.6 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/3.179, allocations: 85.67 kB / 1.107 GB, free: 389.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/3.18, allocations: 0.7935 MB / 1.108 GB, free: 388.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/3.18, allocations: 37.33 kB / 1.108 GB, free: 388.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003835/3.181, allocations: 0.5952 MB / 1.109 GB, free: 388.5 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/3.181, allocations: 217.8 kB / 1.109 GB, free: 388.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003254/3.181, allocations: 240.5 kB / 1.109 GB, free: 388.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001195/3.181, allocations: 388.8 kB / 1.109 GB, free: 387.8 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008755/3.182, allocations: 350.1 kB / 1.11 GB, free: 387.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/3.183, allocations: 0.7634 MB / 1.111 GB, free: 386.7 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/3.185, allocations: 1.145 MB / 1.112 GB, free: 385.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.591e-05/3.185, allocations: 4.562 kB / 1.112 GB, free: 385.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003013/3.188, allocations: 1.393 MB / 1.113 GB, free: 384.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/3.188, allocations: 16.69 kB / 1.113 GB, free: 384.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/3.188, allocations: 12 kB / 1.113 GB, free: 384.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004775/3.193, allocations: 0.8752 MB / 1.114 GB, free: 383.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007383/3.194, allocations: 223.6 kB / 1.114 GB, free: 383.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/3.195, allocations: 1.051 MB / 1.115 GB, free: 382.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009831/3.196, allocations: 178 kB / 1.115 GB, free: 382.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/3.196, allocations: 56.45 kB / 1.115 GB, free: 382.6 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.0005545/3.197, allocations: 274.8 kB / 1.116 GB, free: 382.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/3.197, allocations: 94.88 kB / 1.116 GB, free: 382.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/3.201, allocations: 1.141 MB / 1.117 GB, free: 381.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/3.201, allocations: 7.984 kB / 1.117 GB, free: 381.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/3.201, allocations: 0 / 1.117 GB, free: 381.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/3.201, allocations: 250.4 kB / 1.117 GB, free: 381.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/3.201, allocations: 16.84 kB / 1.117 GB, free: 381.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/3.202, allocations: 55.75 kB / 1.117 GB, free: 381.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/3.202, allocations: 61.33 kB / 1.117 GB, free: 381.1 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003538/3.206, allocations: 1.132 MB / 1.118 GB, free: 380.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002606/3.208, allocations: 1.322 MB / 1.12 GB, free: 379 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007499/3.209, allocations: 306.1 kB / 1.12 GB, free: 378.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005469/3.209, allocations: 0.5119 MB / 1.12 GB, free: 378.4 MB / 0.8419 GB Notification: Performance of Backend: time 6.51e-07/3.209, allocations: 0 / 1.12 GB, free: 378.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0179/3.227, allocations: 4.868 MB / 1.125 GB, free: 374.7 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003263/3.231, allocations: 2.543 MB / 1.128 GB, free: 372.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.09549/3.326, allocations: 90.63 MB / 1.216 GB, free: 282.5 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)