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.8083/0.8083, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003435, allocations: 15.34 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05143/0.05179, allocations: 31.35 MB / 269.1 MB, free: 7.105 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.619/1.67, allocations: 297.6 MB / 0.5534 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5143/2.185, allocations: 196.4 MB / 0.7452 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007893/2.186, allocations: 16.59 kB / 0.7452 GB, free: 0.582 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.0004336/2.186, allocations: 150.9 kB / 0.7453 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0008615/2.187, allocations: 401.7 kB / 0.7457 GB, free: 0.5703 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.0352/2.222, allocations: 14.04 MB / 0.7594 GB, free: 172 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00238/2.224, allocations: 1.588 MB / 0.761 GB, free: 168 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009601/2.225, allocations: 0.772 MB / 0.7617 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008462/2.226, allocations: 0.6285 MB / 0.7623 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006492/2.227, allocations: 0.7081 MB / 0.763 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001625/2.227, allocations: 144.3 kB / 0.7632 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03835/2.265, allocations: 22.56 MB / 0.7852 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004663/2.266, allocations: 341.1 kB / 0.7855 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0009949/2.267, allocations: 0.6976 MB / 0.7862 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03459/2.302, allocations: 12.33 MB / 0.7983 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/2.302, allocations: 0 / 0.7983 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.194e-06/2.302, allocations: 0 / 0.7983 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.362e-05/2.302, allocations: 0 / 0.7983 GB, free: 6.137 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.01002/2.312, allocations: 3.155 MB / 0.8013 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/2.312, allocations: 8.031 kB / 0.8013 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003147/2.312, allocations: 154.3 kB / 0.8015 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/2.313, allocations: 0.6762 MB / 0.8021 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/2.313, allocations: 120.2 kB / 0.8023 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002576/2.314, allocations: 132 kB / 0.8024 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00265/2.316, allocations: 1.459 MB / 0.8038 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/2.316, allocations: 6.531 kB / 0.8038 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/2.316, allocations: 52 kB / 0.8039 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.338e-05/2.316, allocations: 33.62 kB / 0.8039 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/2.319, allocations: 1.327 MB / 0.8052 GB, free: 15.52 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.02778/2.347, allocations: 20.06 MB / 0.8248 GB, free: 9.199 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/2.35, allocations: 0.9694 MB / 0.8257 GB, free: 8.191 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009277/2.351, allocations: 346.3 kB / 0.8261 GB, free: 7.852 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7652/3.116, allocations: 285.7 MB / 1.105 GB, free: 391.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/3.116, allocations: 34.88 kB / 1.105 GB, free: 391.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=58): time 2.695e-06/3.116, allocations: 4 kB / 1.105 GB, free: 391.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=58): time 0.005907/3.122, allocations: 1.945 MB / 1.107 GB, free: 389.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.388e-05/3.122, allocations: 85.67 kB / 1.107 GB, free: 389.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007098/3.123, allocations: 0.7917 MB / 1.108 GB, free: 389.1 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/3.123, allocations: 36.83 kB / 1.108 GB, free: 389 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/3.123, allocations: 0.5992 MB / 1.108 GB, free: 388.6 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/3.123, allocations: 211.6 kB / 1.109 GB, free: 388.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/3.123, allocations: 235.2 kB / 1.109 GB, free: 388.3 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.854e-05/3.123, allocations: 393.7 kB / 1.109 GB, free: 388 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/3.124, allocations: 350.3 kB / 1.11 GB, free: 387.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009362/3.125, allocations: 0.7617 MB / 1.11 GB, free: 386.9 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/3.127, allocations: 1.141 MB / 1.111 GB, free: 385.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/3.127, allocations: 5.188 kB / 1.111 GB, free: 385.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002773/3.13, allocations: 1.443 MB / 1.113 GB, free: 384.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/3.13, allocations: 8 kB / 1.113 GB, free: 384.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/3.13, allocations: 22.19 kB / 1.113 GB, free: 384.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00414/3.134, allocations: 0.7416 MB / 1.114 GB, free: 384.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009583/3.135, allocations: 263.5 kB / 1.114 GB, free: 383.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/3.137, allocations: 2.509 MB / 1.116 GB, free: 381.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/3.137, allocations: 166 kB / 1.117 GB, free: 381.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.199e-05/3.137, allocations: 60.8 kB / 1.117 GB, free: 381.2 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.0003419/3.138, allocations: 287 kB / 1.117 GB, free: 381 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/3.138, allocations: 90.88 kB / 1.117 GB, free: 380.9 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002842/3.141, allocations: 1.146 MB / 1.118 GB, free: 380 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/3.141, allocations: 3.984 kB / 1.118 GB, free: 380 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/3.141, allocations: 8.875 kB / 1.118 GB, free: 380 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/3.141, allocations: 241.2 kB / 1.118 GB, free: 379.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/3.141, allocations: 11.62 kB / 1.118 GB, free: 379.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/3.142, allocations: 60.55 kB / 1.118 GB, free: 379.7 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/3.142, allocations: 60.23 kB / 1.118 GB, free: 379.7 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00349/3.145, allocations: 1.134 MB / 1.12 GB, free: 378.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002568/3.148, allocations: 1.316 MB / 1.121 GB, free: 377.7 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007995/3.149, allocations: 305.8 kB / 1.121 GB, free: 377.4 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005048/3.149, allocations: 0.5079 MB / 1.122 GB, free: 377.1 MB / 0.8419 GB Notification: Performance of Backend: time 5.91e-07/3.149, allocations: 0 / 1.122 GB, free: 377.1 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0183/3.168, allocations: 4.859 MB / 1.126 GB, free: 373.3 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002686/3.17, allocations: 2.564 MB / 1.129 GB, free: 370.9 MB / 0.8419 GB Notification: Performance of Templates: time 0.08885/3.259, allocations: 90.69 MB / 1.217 GB, free: 281.1 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)