Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8215/0.8215, allocations: 150.9 MB / 166.5 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005412/0.0005412, allocations: 20.12 kB / 237 MB, free: 1.758 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06951/0.07007, allocations: 31.34 MB / 268.4 MB, free: 7.117 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.TestPipePressureLoss): time 1.615/1.686, allocations: 294.8 MB / 0.5499 GB, free: 12.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4781/2.164, allocations: 187.4 MB / 0.733 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002233/2.164, allocations: 7.125 kB / 0.733 GB, free: 2.098 MB / 0.5919 GB [/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/PressureLosses/PipePressureLoss.mo:33:3-34: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/PipePressureLoss.mo:35:3-36: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.0001223/2.164, allocations: 43.77 kB / 0.733 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002813/2.164, allocations: 114.6 kB / 0.7331 GB, free: 2.098 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.02768/2.192, allocations: 11.53 MB / 0.7444 GB, free: 1.887 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004922/2.192, allocations: 386 kB / 0.7448 GB, free: 1.887 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/2.193, allocations: 194.1 kB / 0.7449 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/2.193, allocations: 157.4 kB / 0.7451 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/2.193, allocations: 169.8 kB / 0.7452 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/2.193, allocations: 31.69 kB / 0.7453 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03191/2.225, allocations: 19.9 MB / 0.7647 GB, free: 1.371 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/2.225, allocations: 73.98 kB / 0.7648 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003191/2.226, allocations: 184.4 kB / 0.765 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02268/2.248, allocations: 9.732 MB / 0.7745 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/2.248, allocations: 0.9062 kB / 0.7745 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.653e-06/2.248, allocations: 0 / 0.7745 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.053e-05/2.248, allocations: 0 / 0.7745 GB, free: 13.78 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004992/2.253, allocations: 1.752 MB / 0.7762 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/2.253, allocations: 14.55 kB / 0.7762 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.417e-05/2.253, allocations: 46.19 kB / 0.7762 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/2.254, allocations: 297 kB / 0.7765 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/2.254, allocations: 28.16 kB / 0.7765 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/2.254, allocations: 31.66 kB / 0.7766 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/2.254, allocations: 356.1 kB / 0.7769 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/2.255, allocations: 0.9062 kB / 0.7769 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/2.255, allocations: 22.81 kB / 0.7769 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/2.255, allocations: 8.031 kB / 0.7769 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/2.255, allocations: 224.1 kB / 0.7772 GB, free: 12.19 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.00854/2.263, allocations: 6.102 MB / 0.7831 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/2.264, allocations: 78.64 kB / 0.7832 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/2.264, allocations: 29.88 kB / 0.7832 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2494/2.513, allocations: 119 MB / 0.8994 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/2.513, allocations: 34.56 kB / 0.8994 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/2.513, allocations: 0 / 0.8994 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008745/2.514, allocations: 279.5 kB / 0.8997 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/2.514, allocations: 55.34 kB / 0.8997 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/2.515, allocations: 285.3 kB / 0.9 GB, free: 9.293 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/2.515, allocations: 25.7 kB / 0.9 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/2.515, allocations: 223.4 kB / 0.9003 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/2.515, allocations: 37.86 kB / 0.9003 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.3e-05/2.515, allocations: 54.44 kB / 0.9003 GB, free: 9 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001073/2.515, allocations: 328.6 kB / 0.9007 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.923e-05/2.515, allocations: 42.97 kB / 0.9007 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/2.515, allocations: 145 kB / 0.9008 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/2.516, allocations: 194.5 kB / 0.901 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/2.516, allocations: 1.375 kB / 0.901 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005547/2.516, allocations: 270.8 kB / 0.9013 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/2.516, allocations: 8 kB / 0.9013 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/2.516, allocations: 5.375 kB / 0.9013 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008908/2.517, allocations: 132.7 kB / 0.9014 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/2.517, allocations: 43.16 kB / 0.9015 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004771/2.518, allocations: 0.5808 MB / 0.902 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/2.518, allocations: 27.69 kB / 0.9021 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/2.518, allocations: 17.12 kB / 0.9021 GB, free: 7.223 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001514/2.518, allocations: 153 kB / 0.9022 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/2.518, allocations: 26.81 kB / 0.9022 GB, free: 7.043 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003708/2.518, allocations: 155.9 kB / 0.9024 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/2.519, allocations: 8.734 kB / 0.9024 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/2.519, allocations: 0 / 0.9024 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/2.519, allocations: 0 / 0.9024 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/2.519, allocations: 304 kB / 0.9027 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/2.519, allocations: 4 kB / 0.9027 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.449e-05/2.519, allocations: 0 / 0.9027 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004642/2.519, allocations: 88.73 kB / 0.9028 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/2.519, allocations: 0 / 0.9028 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004092/2.52, allocations: 0.5944 MB / 0.9034 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/2.52, allocations: 0 / 0.9034 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/2.52, allocations: 166 kB / 0.9035 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/2.52, allocations: 100.9 kB / 0.9036 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/2.52, allocations: 0 / 0.9036 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/2.52, allocations: 9.922 kB / 0.9036 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/2.52, allocations: 1.094 kB / 0.9036 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/2.52, allocations: 4 kB / 0.9036 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002141/2.521, allocations: 205.9 kB / 0.9038 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.7e-07/2.521, allocations: 0 / 0.9038 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003974/2.525, allocations: 1.436 MB / 0.9052 GB, free: 3.887 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007323/2.532, allocations: 2.197 MB / 0.9074 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004132/2.532, allocations: 130.5 kB / 0.9075 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.532, allocations: 0 / 0.9075 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.84e-05/2.532, allocations: 35.58 kB / 0.9075 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/2.533, allocations: 71.75 kB / 0.9076 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008239/2.534, allocations: 454.6 kB / 0.908 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/2.534, allocations: 0.7558 MB / 0.9088 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001206/2.534, allocations: 39.97 kB / 0.9088 GB, free: 480 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/2.534, allocations: 23.44 kB / 0.9088 GB, free: 456 kB / 0.7325 GB Notification: Performance of SimCode: time 4.2e-07/2.534, allocations: 0 / 0.9088 GB, free: 456 kB / 0.7325 GB Notification: Performance of Templates: time 0.06012/2.594, allocations: 45.59 MB / 0.9533 GB, free: 2.918 MB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)