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.8483/0.8483, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 19.95 kB / 237.1 MB, free: 1.781 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05361/0.05394, allocations: 31.34 MB / 268.4 MB, free: 7.062 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.626/1.68, allocations: 294.8 MB / 0.55 GB, free: 13.1 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04193/1.722, allocations: 34.42 MB / 0.5836 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/1.722, allocations: 7.938 kB / 0.5836 GB, free: 10.54 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.0003978/1.723, allocations: 99.38 kB / 0.5837 GB, free: 10.44 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/1.723, allocations: 99.22 kB / 0.5838 GB, free: 10.34 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.02615/1.749, allocations: 9.566 MB / 0.5931 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005401/1.75, allocations: 330.5 kB / 0.5935 GB, free: 448 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/1.75, allocations: 116.4 kB / 0.5936 GB, free: 332 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/1.75, allocations: 135.5 kB / 0.5937 GB, free: 196 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/1.75, allocations: 103.5 kB / 0.5938 GB, free: 92 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/1.75, allocations: 20 kB / 0.5938 GB, free: 72 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02927/1.78, allocations: 17.88 MB / 0.6113 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.37e-05/1.78, allocations: 43.83 kB / 0.6113 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001612/1.78, allocations: 131.3 kB / 0.6114 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01766/1.798, allocations: 8.423 MB / 0.6197 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.798, allocations: 0 / 0.6197 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.174e-06/1.798, allocations: 0 / 0.6197 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.277e-05/1.798, allocations: 0 / 0.6197 GB, free: 5.547 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.003931/1.802, allocations: 1.471 MB / 0.6211 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/1.802, allocations: 12.03 kB / 0.6211 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/1.802, allocations: 39.75 kB / 0.6212 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/1.802, allocations: 223.5 kB / 0.6214 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/1.802, allocations: 12.44 kB / 0.6214 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/1.802, allocations: 20 kB / 0.6214 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/1.802, allocations: 282.8 kB / 0.6217 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.802, allocations: 3.938 kB / 0.6217 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/1.802, allocations: 8 kB / 0.6217 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/1.802, allocations: 11.98 kB / 0.6217 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/1.803, allocations: 164.4 kB / 0.6219 GB, free: 3.195 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.03756/1.84, allocations: 18.1 MB / 0.6395 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/1.841, allocations: 130.5 kB / 0.6397 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.848e-05/1.841, allocations: 85.16 kB / 0.6397 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3345/2.175, allocations: 77.73 MB / 0.7156 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/2.175, allocations: 39.41 kB / 0.7157 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.425e-06/2.175, allocations: 0 / 0.7157 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0007718/2.176, allocations: 396.8 kB / 0.7161 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.962e-05/2.176, allocations: 51.41 kB / 0.7161 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/2.176, allocations: 211.7 kB / 0.7163 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/2.176, allocations: 29.03 kB / 0.7163 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/2.176, allocations: 150.6 kB / 0.7165 GB, free: 212 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.802e-05/2.176, allocations: 107.6 kB / 0.7166 GB, free: 212 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/2.177, allocations: 47.98 kB / 0.7166 GB, free: 212 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.102e-05/2.177, allocations: 336.6 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.541e-05/2.177, allocations: 65.2 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/2.177, allocations: 114 kB / 0.7171 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/2.177, allocations: 201.6 kB / 0.7173 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/2.177, allocations: 2.375 kB / 0.7173 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003609/2.177, allocations: 281.5 kB / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/2.177, allocations: 6.375 kB / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/2.177, allocations: 0 / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007783/2.178, allocations: 146 kB / 0.7177 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.422e-05/2.178, allocations: 9.562 kB / 0.7177 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003571/2.179, allocations: 0.6119 MB / 0.7183 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.612e-05/2.179, allocations: 26.75 kB / 0.7184 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/2.179, allocations: 7.453 kB / 0.7184 GB, free: 211 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 8.919e-05/2.179, allocations: 143.2 kB / 0.7185 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/2.179, allocations: 19.64 kB / 0.7185 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005633/2.179, allocations: 0.5708 MB / 0.7191 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002805/2.18, allocations: 207.2 kB / 0.7193 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/2.18, allocations: 0 / 0.7193 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/2.18, allocations: 0.8438 kB / 0.7193 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/2.18, allocations: 0.6752 MB / 0.7199 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/2.18, allocations: 1.062 kB / 0.7199 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.433e-05/2.18, allocations: 17.38 kB / 0.72 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003158/2.181, allocations: 105 kB / 0.7201 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/2.181, allocations: 10.41 kB / 0.7201 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003061/2.181, allocations: 0.6328 MB / 0.7207 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/2.181, allocations: 0 / 0.7207 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/2.181, allocations: 313.3 kB / 0.721 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/2.181, allocations: 106.7 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/2.181, allocations: 10.02 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.935e-05/2.182, allocations: 3.875 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.397e-05/2.182, allocations: 12.53 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-06/2.182, allocations: 2.25 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00018/2.182, allocations: 230.5 kB / 0.7213 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/2.182, allocations: 1.031 kB / 0.7213 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002313/2.184, allocations: 1.202 MB / 0.7225 GB, free: 209.4 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.004093/2.188, allocations: 1.736 MB / 0.7242 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000483/2.189, allocations: 222.3 kB / 0.7244 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/2.189, allocations: 1.219 kB / 0.7244 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002021/2.189, allocations: 91.02 kB / 0.7245 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/2.19, allocations: 130.5 kB / 0.7246 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006627/2.19, allocations: 499.3 kB / 0.7251 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/2.191, allocations: 0.763 MB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.553e-05/2.191, allocations: 22.91 kB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/2.191, allocations: 19.19 kB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of SimCode: time 3.71e-07/2.191, allocations: 0 / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.04095/2.232, allocations: 42.22 MB / 0.7671 GB, free: 180.2 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)