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.7778/0.7778, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003298, allocations: 18.05 kB / 237.8 MB, free: 1.957 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05433/0.05467, allocations: 31.34 MB / 269.1 MB, free: 7.168 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.SimpleExamples.TestInvSingularPressureLoss): time 1.537/1.592, allocations: 294.6 MB / 0.5505 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4757/2.067, allocations: 187.4 MB / 0.7335 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/2.068, allocations: 7.844 kB / 0.7335 GB, free: 1.812 MB / 0.5919 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.0001308/2.068, allocations: 36.41 kB / 0.7336 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002748/2.068, allocations: 116.9 kB / 0.7337 GB, free: 1.812 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.03025/2.098, allocations: 11.31 MB / 0.7447 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000551/2.099, allocations: 383.8 kB / 0.7451 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003216/2.099, allocations: 190.7 kB / 0.7453 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/2.1, allocations: 154.6 kB / 0.7454 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/2.1, allocations: 165.1 kB / 0.7456 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.206e-05/2.1, allocations: 33.72 kB / 0.7456 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03639/2.136, allocations: 19.9 MB / 0.7651 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001114/2.136, allocations: 73.02 kB / 0.7651 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002776/2.137, allocations: 180 kB / 0.7653 GB, free: 1.082 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02455/2.161, allocations: 9.738 MB / 0.7748 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/2.161, allocations: 2.219 kB / 0.7748 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.773e-06/2.161, allocations: 0.8438 kB / 0.7748 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.648e-06/2.161, allocations: 0 / 0.7748 GB, free: 13.51 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.005/2.166, allocations: 1.746 MB / 0.7765 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/2.166, allocations: 11.47 kB / 0.7765 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.435e-05/2.167, allocations: 45.19 kB / 0.7766 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/2.167, allocations: 294.3 kB / 0.7769 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/2.167, allocations: 29.69 kB / 0.7769 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/2.167, allocations: 31.56 kB / 0.7769 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/2.168, allocations: 362.2 kB / 0.7773 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/2.168, allocations: 9.188 kB / 0.7773 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/2.168, allocations: 14.62 kB / 0.7773 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/2.168, allocations: 6.875 kB / 0.7773 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/2.168, allocations: 240.1 kB / 0.7775 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06961/2.238, allocations: 32.12 MB / 0.8089 GB, free: 352 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/2.238, allocations: 64.55 kB / 0.809 GB, free: 292 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.792e-05/2.238, allocations: 24.48 kB / 0.809 GB, free: 268 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2265/2.464, allocations: 119 MB / 0.9252 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/2.465, allocations: 30.56 kB / 0.9252 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.694e-06/2.465, allocations: 0 / 0.9252 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004308/2.465, allocations: 116.5 kB / 0.9253 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/2.465, allocations: 55.34 kB / 0.9253 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/2.465, allocations: 311.1 kB / 0.9256 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/2.465, allocations: 29.7 kB / 0.9257 GB, free: 13.69 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/2.466, allocations: 224.2 kB / 0.9259 GB, free: 13.47 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/2.466, allocations: 23.73 kB / 0.9259 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/2.466, allocations: 53.61 kB / 0.926 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001083/2.466, allocations: 330.8 kB / 0.9263 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/2.466, allocations: 43.97 kB / 0.9263 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/2.466, allocations: 150.7 kB / 0.9265 GB, free: 12.83 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/2.466, allocations: 193.5 kB / 0.9266 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/2.466, allocations: 2.688 kB / 0.9266 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003957/2.467, allocations: 227.1 kB / 0.9269 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/2.467, allocations: 9.719 kB / 0.9269 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/2.467, allocations: 5.094 kB / 0.9269 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/2.467, allocations: 4 kB / 0.9269 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/2.467, allocations: 123.5 kB / 0.927 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/2.467, allocations: 15.08 kB / 0.927 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/2.468, allocations: 31.69 kB / 0.927 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/2.468, allocations: 12.83 kB / 0.9271 GB, free: 12.21 MB / 0.7637 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.0001224/2.468, allocations: 149 kB / 0.9272 GB, free: 12.06 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.157e-05/2.468, allocations: 23.72 kB / 0.9272 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/2.468, allocations: 116.6 kB / 0.9273 GB, free: 11.92 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/2.468, allocations: 6.188 kB / 0.9273 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/2.468, allocations: 5.203 kB / 0.9273 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/2.468, allocations: 0 / 0.9273 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4985/2.967, allocations: 115.2 MB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.967, allocations: 2.875 kB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.289e-05/2.967, allocations: 16.2 kB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/2.967, allocations: 2.297 kB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/2.967, allocations: 6.25 kB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/2.967, allocations: 0 / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/2.967, allocations: 2.406 kB / 1.04 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/2.967, allocations: 155.9 kB / 1.04 GB, free: 231.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/2.967, allocations: 106.1 kB / 1.04 GB, free: 231 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/2.967, allocations: 5.281 kB / 1.04 GB, free: 231 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-05/2.967, allocations: 11.03 kB / 1.04 GB, free: 231 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.036e-05/2.967, allocations: 2.5 kB / 1.04 GB, free: 231 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/2.967, allocations: 7.625 kB / 1.04 GB, free: 231 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001797/2.968, allocations: 221.9 kB / 1.04 GB, free: 230.9 MB / 0.8419 GB Notification: Performance of sort global known variables: time 7.31e-07/2.968, allocations: 0 / 1.04 GB, free: 230.9 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00323/2.971, allocations: 1.434 MB / 1.042 GB, free: 230.9 MB / 0.8419 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.005363/2.976, allocations: 2.199 MB / 1.044 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004091/2.977, allocations: 125.4 kB / 1.044 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/2.977, allocations: 2.562 kB / 1.044 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.035e-05/2.977, allocations: 21.81 kB / 1.044 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/2.977, allocations: 77.39 kB / 1.044 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/2.978, allocations: 485.9 kB / 1.045 GB, free: 230.4 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/2.978, allocations: 0.7596 MB / 1.045 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/2.978, allocations: 31.55 kB / 1.045 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/2.978, allocations: 0 / 1.045 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.03314/3.011, allocations: 27.6 MB / 1.072 GB, free: 221.8 MB / 0.8419 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)