Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8694/0.8694, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003579, allocations: 13.36 kB / 237.7 MB, free: 1.809 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06863/0.069, 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.PressureLoss.TestLumpedStraightPipe): time 1.714/1.783, allocations: 296.9 MB / 0.5527 GB, free: 10.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5508/2.334, allocations: 190.4 MB / 0.7386 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007737/2.335, allocations: 14.78 kB / 0.7386 GB, free: 1.672 MB / 0.5919 GB [/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/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). Notification: Performance of NFTyping.typeComponents: time 0.000327/2.335, allocations: 115.4 kB / 0.7387 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006772/2.336, allocations: 307.3 kB / 0.739 GB, free: 1.672 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.03144/2.368, allocations: 12.42 MB / 0.7511 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001886/2.369, allocations: 1.5 MB / 0.7526 GB, free: 1.402 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005958/2.37, allocations: 0.5749 MB / 0.7531 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006347/2.371, allocations: 0.5799 MB / 0.7537 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006342/2.371, allocations: 0.628 MB / 0.7543 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001552/2.372, allocations: 126.9 kB / 0.7544 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0353/2.407, allocations: 19.17 MB / 0.7732 GB, free: 412 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005801/2.407, allocations: 307.3 kB / 0.7734 GB, free: 348 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007704/2.408, allocations: 0.6031 MB / 0.774 GB, free: 288 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0283/2.437, allocations: 10.86 MB / 0.7846 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/2.437, allocations: 0 / 0.7846 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.935e-06/2.437, allocations: 0.75 kB / 0.7846 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.514e-05/2.437, allocations: 0 / 0.7846 GB, free: 12.28 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.01077/2.447, allocations: 2.996 MB / 0.7876 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/2.447, allocations: 8.656 kB / 0.7876 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003604/2.448, allocations: 130 kB / 0.7877 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/2.449, allocations: 0.5807 MB / 0.7883 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/2.449, allocations: 144.1 kB / 0.7884 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003294/2.45, allocations: 119.2 kB / 0.7885 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/2.453, allocations: 1.568 MB / 0.79 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/2.453, allocations: 8.125 kB / 0.7901 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/2.453, allocations: 52.69 kB / 0.7901 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/2.453, allocations: 33.28 kB / 0.7901 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003474/2.456, allocations: 1.47 MB / 0.7916 GB, free: 8.961 MB / 0.6075 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.007071/2.463, allocations: 7.81 MB / 0.7992 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003726/2.467, allocations: 1.021 MB / 0.8002 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/2.468, allocations: 391.8 kB / 0.8006 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.826/3.295, allocations: 285.7 MB / 1.08 GB, free: 418.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/3.295, allocations: 46.41 kB / 1.08 GB, free: 418.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=52): time 2.855e-06/3.295, allocations: 0 / 1.08 GB, free: 418.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=52): time 0.004641/3.299, allocations: 1.436 MB / 1.081 GB, free: 417.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/3.299, allocations: 111.2 kB / 1.081 GB, free: 417.1 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/3.3, allocations: 0.7949 MB / 1.082 GB, free: 416.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/3.3, allocations: 32.77 kB / 1.082 GB, free: 416.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/3.3, allocations: 0.6055 MB / 1.083 GB, free: 416 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/3.301, allocations: 200.3 kB / 1.083 GB, free: 415.9 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/3.301, allocations: 296.9 kB / 1.083 GB, free: 415.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.768e-05/3.301, allocations: 397.7 kB / 1.083 GB, free: 415.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/3.302, allocations: 447.4 kB / 1.084 GB, free: 415 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/3.304, allocations: 1.186 MB / 1.085 GB, free: 413.6 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003005/3.307, allocations: 1.709 MB / 1.087 GB, free: 411.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.23e-05/3.307, allocations: 8 kB / 1.087 GB, free: 411.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004189/3.311, allocations: 1.791 MB / 1.088 GB, free: 410.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/3.311, allocations: 20.12 kB / 1.088 GB, free: 410.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/3.311, allocations: 28 kB / 1.088 GB, free: 410.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002389/3.314, allocations: 445.8 kB / 1.089 GB, free: 410.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/3.315, allocations: 440.1 kB / 1.089 GB, free: 409.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/3.317, allocations: 1.821 MB / 1.091 GB, free: 407.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/3.318, allocations: 258 kB / 1.091 GB, free: 407.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.655e-05/3.318, allocations: 80.36 kB / 1.091 GB, free: 407.7 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 26 (tank1.Cs2.ftype,tank2.Cs2.ftype,tank2.Cs1.ftype,tank2.Ce1.ftype,tank2.fluids[1],tank1.Cs1.ftype,tank1.Ce2.ftype,tank1.Ce1.ftype,tank1.fluids[1],lumpedStraightPipe.fluid,tank2.fluid1,tank1.fluid1,tank2.Ce2.diff_on_2,tank1.Cs2.diff_on_1,tank2.Cs2.diff_on_1,tank2.Cs1.diff_on_1,tank2.Ce1.diff_on_2,tank2.Cs2.diff_on_2,tank2.Cs1.diff_on_2,tank2.Ce1.diff_on_1,tank1.Cs1.diff_on_1,tank1.Ce2.diff_on_2,tank1.Ce1.diff_on_2,tank1.Cs1.diff_on_2,tank1.Ce2.diff_on_1,tank1.Ce1.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 159 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004149/3.319, allocations: 309.1 kB / 1.092 GB, free: 407.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/3.319, allocations: 103.7 kB / 1.092 GB, free: 407.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/3.322, allocations: 1.076 MB / 1.093 GB, free: 406.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/3.322, allocations: 7.984 kB / 1.093 GB, free: 406.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/3.322, allocations: 0 / 1.093 GB, free: 406.5 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/3.322, allocations: 236.1 kB / 1.093 GB, free: 406.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/3.322, allocations: 15.62 kB / 1.093 GB, free: 406.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007892/3.323, allocations: 91.52 kB / 1.093 GB, free: 406.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/3.323, allocations: 67.97 kB / 1.093 GB, free: 406.1 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003542/3.327, allocations: 1.063 MB / 1.094 GB, free: 405.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003918/3.331, allocations: 1.46 MB / 1.096 GB, free: 404 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001225/3.332, allocations: 396.2 kB / 1.096 GB, free: 403.7 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004998/3.332, allocations: 496.2 kB / 1.097 GB, free: 403.3 MB / 0.8419 GB Notification: Performance of Backend: time 1.813e-06/3.332, allocations: 0 / 1.097 GB, free: 403.3 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01554/3.348, allocations: 4.502 MB / 1.101 GB, free: 399.9 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002436/3.351, allocations: 2.243 MB / 1.103 GB, free: 397.8 MB / 0.8419 GB Notification: Performance of Templates: time 0.08019/3.431, allocations: 82.57 MB / 1.184 GB, free: 316 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)