Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.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.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8535/0.8535, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003463, allocations: 19.22 kB / 237.7 MB, free: 1.816 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06042/0.06078, allocations: 31.35 MB / 269.1 MB, free: 7.094 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.Book.SimpleExamples.Volume.TestTank): time 1.702/1.763, allocations: 297.7 MB / 0.5535 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5546/2.318, allocations: 196.4 MB / 0.7453 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009152/2.319, allocations: 22 kB / 0.7453 GB, free: 0.5469 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.0004798/2.319, allocations: 149.6 kB / 0.7455 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0009484/2.32, allocations: 403.4 kB / 0.7459 GB, free: 0.5352 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.04014/2.36, allocations: 14.31 MB / 0.7598 GB, free: 132 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002656/2.363, allocations: 1.597 MB / 0.7614 GB, free: 128 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009021/2.364, allocations: 0.7682 MB / 0.7621 GB, free: 20 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007352/2.364, allocations: 0.6278 MB / 0.7628 GB, free: 20 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007392/2.365, allocations: 0.7117 MB / 0.7635 GB, free: 20 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001628/2.365, allocations: 144.2 kB / 0.7636 GB, free: 20 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04644/2.412, allocations: 22.56 MB / 0.7856 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006895/2.413, allocations: 340.3 kB / 0.7859 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001553/2.414, allocations: 0.6983 MB / 0.7866 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03874/2.453, allocations: 12.36 MB / 0.7987 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/2.453, allocations: 0 / 0.7987 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.567e-06/2.453, allocations: 3.984 kB / 0.7987 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.564e-05/2.453, allocations: 4 kB / 0.7987 GB, free: 5.91 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.01117/2.464, allocations: 3.266 MB / 0.8019 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/2.464, allocations: 12.02 kB / 0.8019 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005422/2.465, allocations: 159.1 kB / 0.8021 GB, free: 2.961 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/2.466, allocations: 0.6686 MB / 0.8027 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/2.466, allocations: 120.2 kB / 0.8028 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000275/2.467, allocations: 131.9 kB / 0.8029 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/2.469, allocations: 1.459 MB / 0.8044 GB, free: 480 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.252e-05/2.469, allocations: 6.625 kB / 0.8044 GB, free: 476 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/2.469, allocations: 52 kB / 0.8044 GB, free: 424 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/2.47, allocations: 32 kB / 0.8045 GB, free: 392 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/2.472, allocations: 1.327 MB / 0.8058 GB, free: 15.07 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.02734/2.5, allocations: 20.09 MB / 0.8254 GB, free: 8.727 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/2.502, allocations: 0.9589 MB / 0.8263 GB, free: 7.727 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009453/2.503, allocations: 353.6 kB / 0.8266 GB, free: 7.383 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7576/3.261, allocations: 285.7 MB / 1.106 GB, free: 390.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/3.261, allocations: 39.06 kB / 1.106 GB, free: 390.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/3.261, allocations: 3.188 kB / 1.106 GB, free: 390.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=58): time 0.006028/3.267, allocations: 1.937 MB / 1.108 GB, free: 389.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/3.267, allocations: 85.67 kB / 1.108 GB, free: 389 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/3.268, allocations: 0.8007 MB / 1.108 GB, free: 388.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/3.268, allocations: 36.45 kB / 1.109 GB, free: 388.3 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/3.268, allocations: 0.6118 MB / 1.109 GB, free: 388 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/3.268, allocations: 227.6 kB / 1.109 GB, free: 387.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/3.269, allocations: 239.4 kB / 1.11 GB, free: 387.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.318e-05/3.269, allocations: 392.1 kB / 1.11 GB, free: 387.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/3.27, allocations: 354.4 kB / 1.11 GB, free: 387 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/3.271, allocations: 0.7544 MB / 1.111 GB, free: 386.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/3.273, allocations: 1.147 MB / 1.112 GB, free: 385.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/3.273, allocations: 4 kB / 1.112 GB, free: 385.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003103/3.276, allocations: 1.448 MB / 1.114 GB, free: 384.1 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/3.276, allocations: 12 kB / 1.114 GB, free: 384.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/3.276, allocations: 12 kB / 1.114 GB, free: 384.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004279/3.28, allocations: 0.7406 MB / 1.114 GB, free: 383.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/3.281, allocations: 265.5 kB / 1.115 GB, free: 383.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/3.283, allocations: 2.508 MB / 1.117 GB, free: 380.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/3.284, allocations: 177.3 kB / 1.117 GB, free: 380.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-05/3.284, allocations: 55.86 kB / 1.117 GB, free: 380.5 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 (107): * Single equations (assignments): 103 * 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,6), (2,7), (2,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004149/3.284, allocations: 293.7 kB / 1.118 GB, free: 380.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/3.284, allocations: 96.14 kB / 1.118 GB, free: 380.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/3.287, allocations: 1.141 MB / 1.119 GB, free: 379.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/3.287, allocations: 1.188 kB / 1.119 GB, free: 379.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/3.287, allocations: 0 / 1.119 GB, free: 379.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/3.288, allocations: 248.1 kB / 1.119 GB, free: 379.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/3.288, allocations: 12.81 kB / 1.119 GB, free: 379.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/3.288, allocations: 67.48 kB / 1.119 GB, free: 379.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/3.289, allocations: 60.23 kB / 1.119 GB, free: 379.1 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003534/3.292, allocations: 1.133 MB / 1.12 GB, free: 378.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002755/3.295, allocations: 1.321 MB / 1.121 GB, free: 377 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008391/3.296, allocations: 308.5 kB / 1.122 GB, free: 376.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00056/3.296, allocations: 0.5033 MB / 1.122 GB, free: 376.4 MB / 0.8419 GB Notification: Performance of Backend: time 2.014e-06/3.296, allocations: 0 / 1.122 GB, free: 376.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0177/3.314, allocations: 4.914 MB / 1.127 GB, free: 372.6 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002764/3.317, allocations: 2.599 MB / 1.13 GB, free: 370.1 MB / 0.8419 GB Notification: Performance of Templates: time 0.09015/3.407, allocations: 90.69 MB / 1.218 GB, free: 280.3 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.Volume.TestTank.pipe 2>&1)