Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8697/0.8697, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003114, allocations: 20.78 kB / 237.1 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05025/0.05058, allocations: 31.35 MB / 268.4 MB, free: 7.051 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.Examples.SimpleExamples.TestSingularPressureLoss): time 1.582/1.632, allocations: 294.6 MB / 0.5499 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03816/1.67, allocations: 34.43 MB / 0.5835 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/1.671, allocations: 0 / 0.5835 GB, free: 10.55 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:25:3-27:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:28:3-29:52:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003357/1.671, allocations: 103.3 kB / 0.5836 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/1.671, allocations: 95.17 kB / 0.5837 GB, free: 10.35 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02376/1.695, allocations: 9.577 MB / 0.593 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000531/1.695, allocations: 326.5 kB / 0.5934 GB, free: 452 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/1.696, allocations: 112.5 kB / 0.5935 GB, free: 340 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/1.696, allocations: 131.5 kB / 0.5936 GB, free: 208 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/1.696, allocations: 115.4 kB / 0.5937 GB, free: 92 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/1.696, allocations: 19.94 kB / 0.5937 GB, free: 72 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02875/1.725, allocations: 17.89 MB / 0.6112 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.707e-05/1.725, allocations: 43.84 kB / 0.6112 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001594/1.725, allocations: 123.4 kB / 0.6114 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01755/1.743, allocations: 8.406 MB / 0.6196 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.743, allocations: 0 / 0.6196 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.963e-06/1.743, allocations: 0 / 0.6196 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.116e-05/1.743, allocations: 0 / 0.6196 GB, free: 5.566 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003374/1.746, allocations: 1.419 MB / 0.6209 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/1.746, allocations: 8.031 kB / 0.621 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/1.746, allocations: 31.56 kB / 0.621 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/1.746, allocations: 228.2 kB / 0.6212 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/1.746, allocations: 16.44 kB / 0.6212 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/1.746, allocations: 16 kB / 0.6212 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000391/1.747, allocations: 290.7 kB / 0.6215 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/1.747, allocations: 0 / 0.6215 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/1.747, allocations: 16 kB / 0.6215 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/1.747, allocations: 11.98 kB / 0.6215 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/1.747, allocations: 152.4 kB / 0.6217 GB, free: 3.281 MB / 0.4981 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.03895/1.786, allocations: 18.1 MB / 0.6394 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/1.786, allocations: 126.5 kB / 0.6395 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/1.787, allocations: 85.22 kB / 0.6396 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3342/2.121, allocations: 77.73 MB / 0.7155 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/2.121, allocations: 31.88 kB / 0.7155 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.164e-06/2.121, allocations: 4 kB / 0.7155 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0007788/2.122, allocations: 399.9 kB / 0.7159 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/2.122, allocations: 51.41 kB / 0.7159 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/2.122, allocations: 211.2 kB / 0.7161 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/2.122, allocations: 25.7 kB / 0.7162 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/2.122, allocations: 140.2 kB / 0.7163 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/2.122, allocations: 108.8 kB / 0.7164 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/2.122, allocations: 46.94 kB / 0.7164 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/2.122, allocations: 338.3 kB / 0.7168 GB, free: 212 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.116e-05/2.122, allocations: 65.28 kB / 0.7168 GB, free: 212 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/2.122, allocations: 111 kB / 0.7169 GB, free: 212 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/2.123, allocations: 200.9 kB / 0.7171 GB, free: 212 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/2.123, allocations: 2.984 kB / 0.7171 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003669/2.123, allocations: 277.3 kB / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/2.123, allocations: 5.031 kB / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/2.123, allocations: 6.344 kB / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008315/2.124, allocations: 140.6 kB / 0.7175 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.719e-05/2.124, allocations: 6.219 kB / 0.7175 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003711/2.124, allocations: 0.6173 MB / 0.7182 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/2.124, allocations: 30.16 kB / 0.7182 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/2.124, allocations: 4.469 kB / 0.7182 GB, free: 211.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 9.693e-05/2.125, allocations: 135.2 kB / 0.7183 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.046e-05/2.125, allocations: 20.56 kB / 0.7183 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005323/2.125, allocations: 0.5738 MB / 0.7189 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002756/2.125, allocations: 201.5 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/2.125, allocations: 2.219 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/2.125, allocations: 3.422 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000648/2.126, allocations: 0.6823 MB / 0.7198 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/2.126, allocations: 0.5625 kB / 0.7198 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.224e-05/2.126, allocations: 12.31 kB / 0.7198 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003341/2.126, allocations: 113.1 kB / 0.7199 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/2.127, allocations: 6.781 kB / 0.7199 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003343/2.127, allocations: 0.6281 MB / 0.7205 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/2.127, allocations: 0 / 0.7205 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/2.127, allocations: 311.7 kB / 0.7208 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.749e-05/2.127, allocations: 106 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/2.127, allocations: 10.56 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/2.127, allocations: 2.688 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/2.127, allocations: 9.938 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/2.127, allocations: 6.656 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002243/2.128, allocations: 235 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.11e-07/2.128, allocations: 0 / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002635/2.13, allocations: 1.176 MB / 0.7223 GB, free: 209.7 MB / 0.5919 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 (11): * Single equations (assignments): 10 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005229/2.136, allocations: 1.728 MB / 0.724 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005752/2.136, allocations: 230 kB / 0.7242 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.136, allocations: 0 / 0.7242 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002031/2.136, allocations: 86.3 kB / 0.7243 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/2.137, allocations: 128.3 kB / 0.7244 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006963/2.138, allocations: 483.5 kB / 0.7249 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/2.138, allocations: 0.7673 MB / 0.7256 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.278e-05/2.138, allocations: 23.09 kB / 0.7256 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.88e-05/2.138, allocations: 22.72 kB / 0.7257 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of SimCode: time 2.4e-07/2.138, allocations: 0 / 0.7257 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.04198/2.18, allocations: 42.23 MB / 0.7669 GB, free: 180.4 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)