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.83/0.83, allocations: 150.9 MB / 166.5 MB, free: 14.35 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 17.22 kB / 237.1 MB, free: 1.797 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05105/0.05138, allocations: 31.35 MB / 268.4 MB, free: 7.059 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.852/1.903, allocations: 294.8 MB / 0.55 GB, free: 7.391 MB / 446.2 MB Notification: Performance of NFInst.instExpressions: time 0.4725/2.375, allocations: 187.4 MB / 0.7331 GB, free: 5.875 MB / 0.592 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/2.376, allocations: 9.406 kB / 0.7331 GB, free: 5.875 MB / 0.592 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.0001369/2.376, allocations: 37.62 kB / 0.7331 GB, free: 5.875 MB / 0.592 GB Notification: Performance of NFTyping.typeBindings: time 0.0002966/2.376, allocations: 117.5 kB / 0.7332 GB, free: 5.875 MB / 0.592 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.02961/2.406, allocations: 11.53 MB / 0.7445 GB, free: 5.637 MB / 0.592 GB Notification: Performance of NFFlatten.flatten: time 0.0004553/2.406, allocations: 379.2 kB / 0.7448 GB, free: 5.637 MB / 0.592 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/2.407, allocations: 198 kB / 0.745 GB, free: 5.629 MB / 0.592 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/2.407, allocations: 158.3 kB / 0.7452 GB, free: 5.629 MB / 0.592 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/2.407, allocations: 166.6 kB / 0.7453 GB, free: 5.629 MB / 0.592 GB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/2.407, allocations: 34.25 kB / 0.7454 GB, free: 5.629 MB / 0.592 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0329/2.44, allocations: 19.91 MB / 0.7648 GB, free: 4.738 MB / 0.592 GB Notification: Performance of NFScalarize.scalarize: time 9.884e-05/2.44, allocations: 70.55 kB / 0.7649 GB, free: 4.73 MB / 0.592 GB Notification: Performance of NFVerifyModel.verify: time 0.0002564/2.44, allocations: 179.7 kB / 0.765 GB, free: 4.719 MB / 0.592 GB Notification: Performance of NFConvertDAE.convert: time 0.02215/2.462, allocations: 9.74 MB / 0.7746 GB, free: 1.148 MB / 0.592 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/2.462, allocations: 0 / 0.7746 GB, free: 1.148 MB / 0.592 GB Notification: Performance of FrontEnd: time 1.984e-06/2.462, allocations: 0.7188 kB / 0.7746 GB, free: 1.148 MB / 0.592 GB Notification: Performance of Transformations before backend: time 1.561e-05/2.462, allocations: 0 / 0.7746 GB, free: 1.148 MB / 0.592 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.004435/2.467, allocations: 1.747 MB / 0.7763 GB, free: 16 kB / 0.592 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/2.467, allocations: 10.25 kB / 0.7763 GB, free: 16 kB / 0.592 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/2.467, allocations: 45.48 kB / 0.7763 GB, free: 15.99 MB / 0.6077 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/2.467, allocations: 299.7 kB / 0.7766 GB, free: 15.73 MB / 0.6077 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/2.467, allocations: 26.38 kB / 0.7766 GB, free: 15.73 MB / 0.6077 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/2.468, allocations: 31.44 kB / 0.7767 GB, free: 15.73 MB / 0.6077 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005451/2.468, allocations: 365 kB / 0.777 GB, free: 15.59 MB / 0.6077 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/2.468, allocations: 0 / 0.777 GB, free: 15.59 MB / 0.6077 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/2.468, allocations: 15.56 kB / 0.777 GB, free: 15.59 MB / 0.6077 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/2.468, allocations: 8.469 kB / 0.777 GB, free: 15.59 MB / 0.6077 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/2.469, allocations: 236.8 kB / 0.7773 GB, free: 15.55 MB / 0.6077 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0778/2.546, allocations: 32.12 MB / 0.8086 GB, free: 2.645 MB / 0.6233 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/2.547, allocations: 67.36 kB / 0.8087 GB, free: 2.582 MB / 0.6233 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.217e-05/2.547, allocations: 22.36 kB / 0.8087 GB, free: 2.562 MB / 0.6233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2501/2.797, allocations: 119 MB / 0.9249 GB, free: 15.68 MB / 0.7639 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/2.797, allocations: 30.56 kB / 0.9249 GB, free: 15.64 MB / 0.7639 GB Notification: Performance of pre-optimization done (n=5): time 1.953e-06/2.797, allocations: 0 / 0.9249 GB, free: 15.64 MB / 0.7639 GB Notification: Performance of matching and sorting (n=5): time 0.0004464/2.797, allocations: 114.2 kB / 0.925 GB, free: 15.52 MB / 0.7639 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/2.797, allocations: 58.44 kB / 0.9251 GB, free: 15.46 MB / 0.7639 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/2.798, allocations: 307.2 kB / 0.9254 GB, free: 15.14 MB / 0.7639 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/2.798, allocations: 26.8 kB / 0.9254 GB, free: 15.11 MB / 0.7639 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/2.798, allocations: 234.8 kB / 0.9256 GB, free: 14.88 MB / 0.7639 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/2.798, allocations: 19.73 kB / 0.9256 GB, free: 14.86 MB / 0.7639 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/2.798, allocations: 57.61 kB / 0.9257 GB, free: 14.8 MB / 0.7639 GB Notification: Performance of setup shared object (initialization): time 0.0001217/2.798, allocations: 330.8 kB / 0.926 GB, free: 14.47 MB / 0.7639 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/2.798, allocations: 43.97 kB / 0.9261 GB, free: 14.43 MB / 0.7639 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/2.799, allocations: 143.8 kB / 0.9262 GB, free: 14.24 MB / 0.7639 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/2.799, allocations: 191.5 kB / 0.9264 GB, free: 14.02 MB / 0.7639 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/2.799, allocations: 5.203 kB / 0.9264 GB, free: 14.02 MB / 0.7639 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004388/2.799, allocations: 230.3 kB / 0.9266 GB, free: 13.81 MB / 0.7639 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/2.799, allocations: 8 kB / 0.9266 GB, free: 13.8 MB / 0.7639 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/2.799, allocations: 6.688 kB / 0.9266 GB, free: 13.8 MB / 0.7639 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/2.799, allocations: 7.984 kB / 0.9266 GB, free: 13.79 MB / 0.7639 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006945/2.8, allocations: 123.5 kB / 0.9267 GB, free: 13.67 MB / 0.7639 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/2.8, allocations: 4 kB / 0.9267 GB, free: 13.67 MB / 0.7639 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/2.8, allocations: 31.67 kB / 0.9268 GB, free: 13.64 MB / 0.7639 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/2.8, allocations: 16 kB / 0.9268 GB, free: 13.62 MB / 0.7639 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.0001454/2.8, allocations: 148 kB / 0.9269 GB, free: 13.47 MB / 0.7639 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/2.801, allocations: 24.61 kB / 0.927 GB, free: 13.45 MB / 0.7639 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000279/2.801, allocations: 113.1 kB / 0.9271 GB, free: 13.33 MB / 0.7639 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/2.801, allocations: 3.938 kB / 0.9271 GB, free: 13.33 MB / 0.7639 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/2.801, allocations: 0 / 0.9271 GB, free: 13.33 MB / 0.7639 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/2.801, allocations: 4 kB / 0.9271 GB, free: 13.32 MB / 0.7639 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4423/3.243, allocations: 115.2 MB / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/3.243, allocations: 0 / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.637e-05/3.243, allocations: 17.41 kB / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/3.243, allocations: 0 / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/3.243, allocations: 10 kB / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/3.243, allocations: 3.469 kB / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/3.243, allocations: 0 / 1.04 GB, free: 442.8 MB / 0.842 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/3.244, allocations: 152.2 kB / 1.04 GB, free: 442.7 MB / 0.842 GB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/3.244, allocations: 108 kB / 1.04 GB, free: 442.6 MB / 0.842 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/3.244, allocations: 5.25 kB / 1.04 GB, free: 442.6 MB / 0.842 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/3.244, allocations: 14.2 kB / 1.04 GB, free: 442.6 MB / 0.842 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/3.244, allocations: 2.969 kB / 1.04 GB, free: 442.6 MB / 0.842 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/3.244, allocations: 0 / 1.04 GB, free: 442.6 MB / 0.842 GB Notification: Performance of sorting global known variables: time 0.0002021/3.244, allocations: 225.7 kB / 1.04 GB, free: 442.5 MB / 0.842 GB Notification: Performance of sort global known variables: time 1.41e-07/3.244, allocations: 0 / 1.04 GB, free: 442.5 MB / 0.842 GB Notification: Performance of remove unused functions: time 0.003705/3.248, allocations: 1.435 MB / 1.041 GB, free: 442.5 MB / 0.842 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.006288/3.254, allocations: 2.202 MB / 1.044 GB, free: 442.3 MB / 0.842 GB Notification: Performance of simCode: created initialization part: time 0.0004261/3.255, allocations: 112.2 kB / 1.044 GB, free: 442.3 MB / 0.842 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/3.255, allocations: 0.9375 kB / 1.044 GB, free: 442.3 MB / 0.842 GB Notification: Performance of simCode: created simulation system equations: time 9.126e-05/3.255, allocations: 33.47 kB / 1.044 GB, free: 442.3 MB / 0.842 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/3.255, allocations: 72.05 kB / 1.044 GB, free: 442.3 MB / 0.842 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007345/3.256, allocations: 455.8 kB / 1.044 GB, free: 442 MB / 0.842 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/3.256, allocations: 0.7633 MB / 1.045 GB, free: 441.3 MB / 0.842 GB Notification: Performance of simCode: alias equations: time 0.0001402/3.256, allocations: 46.97 kB / 1.045 GB, free: 441.3 MB / 0.842 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/3.256, allocations: 27.61 kB / 1.045 GB, free: 441.3 MB / 0.842 GB Notification: Performance of SimCode: time 3.91e-07/3.256, allocations: 0 / 1.045 GB, free: 441.3 MB / 0.842 GB Notification: Performance of Templates: time 0.04659/3.303, allocations: 45.17 MB / 1.089 GB, free: 407.7 MB / 0.842 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)