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.7494/0.7494, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003153, allocations: 22.58 kB / 237.8 MB, free: 1.766 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04502/0.04534, allocations: 31.34 MB / 269.1 MB, free: 7.039 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.439/1.484, allocations: 294.7 MB / 0.5506 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03415/1.518, allocations: 34.43 MB / 0.5842 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/1.519, allocations: 4 kB / 0.5842 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.0003085/1.519, allocations: 103.3 kB / 0.5843 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/1.519, allocations: 103.1 kB / 0.5844 GB, free: 10.33 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.02016/1.539, allocations: 9.562 MB / 0.5937 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004193/1.54, allocations: 330.5 kB / 0.594 GB, free: 444 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/1.54, allocations: 120.5 kB / 0.5941 GB, free: 324 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/1.54, allocations: 131.4 kB / 0.5943 GB, free: 192 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/1.54, allocations: 103.5 kB / 0.5944 GB, free: 88 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/1.54, allocations: 16 kB / 0.5944 GB, free: 72 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02745/1.568, allocations: 17.89 MB / 0.6118 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/1.568, allocations: 51.83 kB / 0.6119 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001495/1.568, allocations: 119.4 kB / 0.612 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01501/1.583, allocations: 8.402 MB / 0.6202 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.583, allocations: 0 / 0.6202 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/1.583, allocations: 0 / 0.6202 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.666e-06/1.583, allocations: 0 / 0.6202 GB, free: 5.57 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.003524/1.587, allocations: 1.419 MB / 0.6216 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/1.587, allocations: 12.03 kB / 0.6216 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.397e-05/1.587, allocations: 31.56 kB / 0.6216 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/1.587, allocations: 227.4 kB / 0.6219 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/1.587, allocations: 16.44 kB / 0.6219 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/1.587, allocations: 16 kB / 0.6219 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/1.587, allocations: 282.8 kB / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/1.587, allocations: 0 / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/1.587, allocations: 16 kB / 0.6222 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/1.587, allocations: 15.92 kB / 0.6222 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/1.588, allocations: 168.3 kB / 0.6224 GB, free: 3.27 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.03405/1.622, allocations: 18.1 MB / 0.64 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/1.622, allocations: 122.5 kB / 0.6401 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.725e-05/1.622, allocations: 81.22 kB / 0.6402 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2969/1.919, allocations: 77.73 MB / 0.7161 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/1.919, allocations: 34.56 kB / 0.7162 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 1.694e-06/1.919, allocations: 0 / 0.7162 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0006906/1.92, allocations: 395 kB / 0.7165 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.642e-05/1.92, allocations: 51.41 kB / 0.7166 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/1.92, allocations: 209.3 kB / 0.7168 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.556e-06/1.92, allocations: 25.7 kB / 0.7168 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/1.92, allocations: 153.3 kB / 0.717 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/1.92, allocations: 99.62 kB / 0.7171 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/1.92, allocations: 45.11 kB / 0.7171 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.657e-05/1.92, allocations: 337.7 kB / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.344e-05/1.92, allocations: 71.95 kB / 0.7175 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.297e-05/1.92, allocations: 108 kB / 0.7176 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/1.921, allocations: 201.1 kB / 0.7178 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/1.921, allocations: 3.172 kB / 0.7178 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003476/1.921, allocations: 278.5 kB / 0.7181 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/1.921, allocations: 8.219 kB / 0.7181 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/1.921, allocations: 0.75 kB / 0.7181 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007589/1.922, allocations: 140.9 kB / 0.7182 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.249e-05/1.922, allocations: 19.52 kB / 0.7182 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003262/1.922, allocations: 0.6083 MB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/1.922, allocations: 35.47 kB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/1.922, allocations: 5.375 kB / 0.7189 GB, free: 211.2 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.595e-05/1.922, allocations: 129 kB / 0.719 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/1.922, allocations: 26 kB / 0.719 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004991/1.923, allocations: 0.568 MB / 0.7196 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002499/1.923, allocations: 209.7 kB / 0.7198 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/1.923, allocations: 0 / 0.7198 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/1.923, allocations: 0.8906 kB / 0.7198 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005637/1.924, allocations: 0.675 MB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.924, allocations: 0.8125 kB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-05/1.924, allocations: 17.31 kB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/1.924, allocations: 110.8 kB / 0.7205 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/1.924, allocations: 4.688 kB / 0.7205 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002746/1.924, allocations: 0.632 MB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.924, allocations: 4.094 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/1.925, allocations: 306.4 kB / 0.7215 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/1.925, allocations: 111.9 kB / 0.7216 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/1.925, allocations: 10.69 kB / 0.7216 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/1.925, allocations: 3.938 kB / 0.7216 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/1.925, allocations: 12.53 kB / 0.7216 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/1.925, allocations: 3 kB / 0.7216 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001629/1.925, allocations: 232.8 kB / 0.7218 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.925, allocations: 0 / 0.7218 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002234/1.927, allocations: 1.177 MB / 0.723 GB, free: 209.5 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.004247/1.932, allocations: 1.733 MB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003905/1.932, allocations: 220.5 kB / 0.7249 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/1.932, allocations: 0 / 0.7249 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/1.932, allocations: 92.67 kB / 0.725 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/1.933, allocations: 121.8 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.0006209/1.933, allocations: 0.5094 MB / 0.7256 GB, free: 209 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/1.934, allocations: 0.7702 MB / 0.7263 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.006e-05/1.934, allocations: 21.06 kB / 0.7263 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of SimCode: time 2.91e-07/1.934, allocations: 0 / 0.7263 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.0259/1.959, allocations: 24.79 MB / 0.7505 GB, free: 197.6 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)