Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8412/0.8412, allocations: 150.9 MB / 167.1 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003629, allocations: 11.98 kB / 205.9 MB, free: 9.078 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1421, allocations: 31.34 MB / 237.3 MB, free: 5.762 MB / 190.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.TestInvSingularPressureLoss): time 1.591/1.733, allocations: 294.5 MB / 0.5194 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1937/1.927, allocations: 187.4 MB / 0.7024 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/1.927, allocations: 7.938 kB / 0.7024 GB, free: 1.391 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33: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.0001323/1.928, allocations: 39.59 kB / 0.7024 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002854/1.928, allocations: 111 kB / 0.7025 GB, free: 1.242 MB / 0.5762 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.3009/2.229, allocations: 11.31 MB / 0.7136 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000407/2.229, allocations: 382.2 kB / 0.7139 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/2.229, allocations: 196.1 kB / 0.7141 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/2.23, allocations: 155.5 kB / 0.7143 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/2.23, allocations: 165.7 kB / 0.7144 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/2.23, allocations: 32.75 kB / 0.7145 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03148/2.261, allocations: 19.9 MB / 0.7339 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000103/2.261, allocations: 74.84 kB / 0.734 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00025/2.262, allocations: 175.3 kB / 0.7341 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02185/2.284, allocations: 9.74 MB / 0.7436 GB, free: 476 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/2.284, allocations: 3.625 kB / 0.7436 GB, free: 476 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.743e-06/2.284, allocations: 1.938 kB / 0.7436 GB, free: 476 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.334e-05/2.284, allocations: 0 / 0.7436 GB, free: 476 kB / 0.5762 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.004491/2.288, allocations: 1.739 MB / 0.7453 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/2.288, allocations: 11.09 kB / 0.7454 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.681e-05/2.288, allocations: 43.52 kB / 0.7454 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/2.289, allocations: 300.6 kB / 0.7457 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/2.289, allocations: 28.34 kB / 0.7457 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.835e-05/2.289, allocations: 31.75 kB / 0.7457 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/2.289, allocations: 361.9 kB / 0.7461 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/2.289, allocations: 3.984 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.599e-05/2.289, allocations: 15.66 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/2.289, allocations: 16.25 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000427/2.29, allocations: 231.5 kB / 0.7463 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0693/2.359, allocations: 32.13 MB / 0.7777 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/2.359, allocations: 75.61 kB / 0.7778 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/2.359, allocations: 33 kB / 0.7778 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2271/2.587, allocations: 119 MB / 0.894 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/2.587, allocations: 41.94 kB / 0.894 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.004e-06/2.587, allocations: 0 / 0.894 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004484/2.587, allocations: 114.5 kB / 0.8941 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/2.587, allocations: 51.41 kB / 0.8942 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/2.587, allocations: 303.8 kB / 0.8945 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/2.587, allocations: 29.7 kB / 0.8945 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/2.588, allocations: 231.9 kB / 0.8947 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/2.588, allocations: 19.16 kB / 0.8947 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/2.588, allocations: 55.69 kB / 0.8948 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001137/2.588, allocations: 329.2 kB / 0.8951 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/2.588, allocations: 42.59 kB / 0.8952 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/2.588, allocations: 150.9 kB / 0.8953 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/2.588, allocations: 195.9 kB / 0.8955 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/2.588, allocations: 0 / 0.8955 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004371/2.589, allocations: 225 kB / 0.8957 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/2.589, allocations: 9.562 kB / 0.8957 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/2.589, allocations: 4 kB / 0.8957 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/2.589, allocations: 7.938 kB / 0.8957 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006692/2.59, allocations: 118.4 kB / 0.8958 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/2.59, allocations: 9.25 kB / 0.8958 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/2.59, allocations: 42.45 kB / 0.8959 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/2.59, allocations: 9.812 kB / 0.8959 GB, free: 1.93 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001351/2.59, allocations: 142.2 kB / 0.896 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.036e-05/2.59, allocations: 28.91 kB / 0.8961 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/2.59, allocations: 112.8 kB / 0.8962 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/2.59, allocations: 3.984 kB / 0.8962 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/2.59, allocations: 256 / 0.8962 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/2.59, allocations: 0 / 0.8962 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.383/2.973, allocations: 115.2 MB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/2.974, allocations: 2.844 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.446e-05/2.974, allocations: 14 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/2.974, allocations: 7.75 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/2.974, allocations: 7.234 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/2.974, allocations: 0 / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/2.974, allocations: 3.188 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/2.974, allocations: 150 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/2.974, allocations: 112 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/2.974, allocations: 4.125 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/2.974, allocations: 8.375 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.378e-05/2.974, allocations: 4.641 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-06/2.974, allocations: 5.375 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001906/2.974, allocations: 221.9 kB / 1.009 GB, free: 459.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/2.974, allocations: 4.562 kB / 1.009 GB, free: 459.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003613/2.978, allocations: 1.434 MB / 1.011 GB, free: 459.2 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006418/2.984, allocations: 2.204 MB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005154/2.985, allocations: 116 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/2.985, allocations: 0 / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/2.985, allocations: 29.72 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/2.986, allocations: 79.06 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/2.987, allocations: 450.3 kB / 1.013 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/2.987, allocations: 0.7614 MB / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001428/2.987, allocations: 44.72 kB / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.416e-05/2.987, allocations: 28.39 kB / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of SimCode: time 3.9e-07/2.987, allocations: 0 / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of Templates: time 0.04656/3.034, allocations: 45.13 MB / 1.058 GB, free: 425.8 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)