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.7473/0.7473, allocations: 150.8 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 20.75 kB / 237.8 MB, free: 1.73 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04531/0.04564, allocations: 31.35 MB / 269.1 MB, free: 7.035 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.452/1.497, allocations: 294.7 MB / 0.5506 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0347/1.532, allocations: 34.41 MB / 0.5842 GB, free: 10.56 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/1.532, allocations: 0 / 0.5842 GB, free: 10.56 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.0003132/1.533, allocations: 115.2 kB / 0.5843 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/1.533, allocations: 95.23 kB / 0.5844 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.02052/1.553, allocations: 9.569 MB / 0.5937 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/1.554, allocations: 326.5 kB / 0.594 GB, free: 460 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/1.554, allocations: 112.5 kB / 0.5941 GB, free: 348 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/1.554, allocations: 135.4 kB / 0.5943 GB, free: 212 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/1.554, allocations: 111.4 kB / 0.5944 GB, free: 100 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/1.554, allocations: 20 kB / 0.5944 GB, free: 80 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02656/1.581, allocations: 17.89 MB / 0.6119 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.21e-05/1.581, allocations: 35.86 kB / 0.6119 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001526/1.581, allocations: 127.4 kB / 0.612 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01501/1.596, allocations: 8.406 MB / 0.6202 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/1.596, allocations: 0 / 0.6202 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.763e-06/1.596, allocations: 0 / 0.6202 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.346e-06/1.596, allocations: 0 / 0.6202 GB, free: 5.582 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.003331/1.599, allocations: 1.423 MB / 0.6216 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/1.6, allocations: 8.031 kB / 0.6216 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/1.6, allocations: 31.56 kB / 0.6216 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/1.6, allocations: 226.6 kB / 0.6219 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/1.6, allocations: 12.44 kB / 0.6219 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/1.6, allocations: 20 kB / 0.6219 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/1.6, allocations: 294.7 kB / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/1.6, allocations: 0 / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/1.6, allocations: 4 kB / 0.6222 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/1.6, allocations: 15.98 kB / 0.6222 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/1.601, allocations: 164.3 kB / 0.6223 GB, free: 3.285 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.03564/1.636, allocations: 18.1 MB / 0.64 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/1.636, allocations: 122.5 kB / 0.6401 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.886e-05/1.637, allocations: 85.22 kB / 0.6402 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2983/1.935, allocations: 77.72 MB / 0.7161 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/1.935, allocations: 32 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.064e-06/1.935, allocations: 0 / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0006898/1.936, allocations: 398.6 kB / 0.7165 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/1.936, allocations: 56.67 kB / 0.7166 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/1.936, allocations: 208.3 kB / 0.7168 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/1.936, allocations: 25.7 kB / 0.7168 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 5.642e-05/1.936, allocations: 147.7 kB / 0.717 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/1.936, allocations: 102.2 kB / 0.7171 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/1.936, allocations: 46.42 kB / 0.7171 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.373e-05/1.936, allocations: 334.2 kB / 0.7174 GB, free: 212 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/1.936, allocations: 73.17 kB / 0.7175 GB, free: 212 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.73e-05/1.936, allocations: 115.7 kB / 0.7176 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/1.937, allocations: 191.8 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.937, allocations: 1.094 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000346/1.937, allocations: 286.6 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/1.937, allocations: 5.906 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/1.937, allocations: 1.312 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007601/1.938, allocations: 142.5 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.394e-05/1.938, allocations: 14.69 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000347/1.938, allocations: 0.6062 MB / 0.7188 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/1.938, allocations: 33.77 kB / 0.7188 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/1.938, allocations: 9.188 kB / 0.7188 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 8.956e-05/1.938, allocations: 139.4 kB / 0.719 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.573e-05/1.938, allocations: 23.98 kB / 0.719 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/1.939, allocations: 0.566 MB / 0.7196 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002738/1.939, allocations: 207.8 kB / 0.7197 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.939, allocations: 5.062 kB / 0.7198 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/1.939, allocations: 2.094 kB / 0.7198 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005773/1.94, allocations: 0.6715 MB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.94, allocations: 0 / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-05/1.94, allocations: 17 kB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002996/1.94, allocations: 111.8 kB / 0.7205 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/1.94, allocations: 7.812 kB / 0.7205 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002766/1.94, allocations: 0.626 MB / 0.7212 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.94, allocations: 0 / 0.7212 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/1.941, allocations: 311.4 kB / 0.7215 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/1.941, allocations: 109.5 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/1.941, allocations: 13.41 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.013e-05/1.941, allocations: 3.875 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/1.941, allocations: 6.844 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/1.941, allocations: 3.156 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001618/1.941, allocations: 235.2 kB / 0.7218 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/1.941, allocations: 0 / 0.7218 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00233/1.943, allocations: 1.183 MB / 0.723 GB, free: 209.6 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.004191/1.948, allocations: 1.733 MB / 0.7247 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000402/1.948, allocations: 219.8 kB / 0.7249 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/1.948, allocations: 0 / 0.7249 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001797/1.948, allocations: 88.02 kB / 0.7249 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.0006543/1.949, allocations: 129.1 kB / 0.7251 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005893/1.949, allocations: 0.5021 MB / 0.7256 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/1.95, allocations: 0.7641 MB / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/1.95, allocations: 22.06 kB / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of SimCode: time 2.5e-07/1.95, allocations: 0 / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.02446/1.974, allocations: 24.77 MB / 0.7505 GB, free: 197.7 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)