Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8387/0.8387, allocations: 150.9 MB / 166.7 MB, free: 14.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003405, allocations: 19.95 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1815, allocations: 31.32 MB / 236.1 MB, free: 5.453 MB / 190.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.TestSingularPressureLoss): time 1.733/1.915, allocations: 293.6 MB / 0.5173 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2142/2.129, allocations: 185.4 MB / 0.6984 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004414/2.13, allocations: 7.938 kB / 0.6984 GB, free: 3.871 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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/SingularPressureLoss.mo:27:3-28: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/SingularPressureLoss.mo:29:3-30: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.0002277/2.13, allocations: 27.78 kB / 0.6984 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005921/2.13, allocations: 95.22 kB / 0.6985 GB, free: 3.75 MB / 0.5762 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.4334/2.564, allocations: 9.958 MB / 0.7082 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006888/2.564, allocations: 366.4 kB / 0.7086 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/2.565, allocations: 196.7 kB / 0.7088 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/2.565, allocations: 141.5 kB / 0.7089 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/2.565, allocations: 161.5 kB / 0.7091 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/2.565, allocations: 32.44 kB / 0.7091 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03367/2.599, allocations: 19.82 MB / 0.7284 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00016/2.599, allocations: 68.08 kB / 0.7285 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003441/2.599, allocations: 178.4 kB / 0.7287 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01543/2.615, allocations: 6.738 MB / 0.7353 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/2.615, allocations: 0 / 0.7353 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.533e-06/2.615, allocations: 0.9688 kB / 0.7353 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.498e-06/2.615, allocations: 0 / 0.7353 GB, free: 4.039 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00693/2.622, allocations: 1.738 MB / 0.737 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/2.622, allocations: 10.94 kB / 0.737 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/2.622, allocations: 44.56 kB / 0.737 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/2.623, allocations: 280.7 kB / 0.7373 GB, free: 18.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/2.623, allocations: 26.47 kB / 0.7373 GB, free: 18.77 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/2.623, allocations: 31.84 kB / 0.7373 GB, free: 18.77 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005243/2.623, allocations: 346.8 kB / 0.7377 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/2.623, allocations: 0 / 0.7377 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/2.623, allocations: 21.94 kB / 0.7377 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/2.623, allocations: 10.59 kB / 0.7377 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/2.624, allocations: 211 kB / 0.7379 GB, free: 18.68 MB / 0.5919 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.00858/2.632, allocations: 6.087 MB / 0.7438 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/2.632, allocations: 61.7 kB / 0.7439 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.212e-05/2.632, allocations: 23.11 kB / 0.7439 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1452/2.778, allocations: 70.9 MB / 0.8132 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/2.778, allocations: 30.56 kB / 0.8132 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 2.625e-06/2.778, allocations: 0 / 0.8132 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0007808/2.779, allocations: 225.8 kB / 0.8134 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/2.779, allocations: 58.78 kB / 0.8135 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/2.779, allocations: 275.4 kB / 0.8137 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/2.779, allocations: 26.91 kB / 0.8138 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/2.779, allocations: 229 kB / 0.814 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/2.779, allocations: 22.61 kB / 0.814 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/2.779, allocations: 51.55 kB / 0.814 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001267/2.779, allocations: 341.1 kB / 0.8144 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.695e-05/2.779, allocations: 38.48 kB / 0.8144 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/2.78, allocations: 135.5 kB / 0.8145 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/2.78, allocations: 176.9 kB / 0.8147 GB, free: 9.891 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/2.78, allocations: 4 kB / 0.8147 GB, free: 9.887 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000441/2.78, allocations: 263.1 kB / 0.815 GB, free: 9.691 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/2.78, allocations: 5.562 kB / 0.815 GB, free: 9.688 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/2.78, allocations: 4.469 kB / 0.815 GB, free: 9.684 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008219/2.781, allocations: 118.5 kB / 0.8151 GB, free: 9.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/2.781, allocations: 38.02 kB / 0.8151 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004477/2.782, allocations: 0.561 MB / 0.8157 GB, free: 8.969 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/2.782, allocations: 31.34 kB / 0.8157 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/2.782, allocations: 15.25 kB / 0.8157 GB, free: 8.93 MB / 0.6544 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 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.00016/2.782, allocations: 141.8 kB / 0.8158 GB, free: 8.805 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.043e-05/2.782, allocations: 23.75 kB / 0.8159 GB, free: 8.781 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/2.783, allocations: 141.2 kB / 0.816 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/2.783, allocations: 0 / 0.816 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/2.783, allocations: 0 / 0.816 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/2.783, allocations: 0 / 0.816 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/2.783, allocations: 291.4 kB / 0.8163 GB, free: 8.363 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/2.783, allocations: 3.938 kB / 0.8163 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.194e-05/2.783, allocations: 0 / 0.8163 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/2.783, allocations: 79.31 kB / 0.8164 GB, free: 8.289 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/2.783, allocations: 3.984 kB / 0.8164 GB, free: 8.285 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003746/2.784, allocations: 0.5639 MB / 0.8169 GB, free: 7.719 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.784, allocations: 1.203 kB / 0.8169 GB, free: 7.719 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002539/2.784, allocations: 133.8 kB / 0.817 GB, free: 7.586 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/2.784, allocations: 96.58 kB / 0.8171 GB, free: 7.477 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/2.784, allocations: 4 kB / 0.8171 GB, free: 7.473 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-05/2.784, allocations: 8.047 kB / 0.8171 GB, free: 7.465 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/2.784, allocations: 0 / 0.8171 GB, free: 7.465 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/2.784, allocations: 7.938 kB / 0.8171 GB, free: 7.457 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002066/2.784, allocations: 196.7 kB / 0.8173 GB, free: 7.301 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/2.784, allocations: 0 / 0.8173 GB, free: 7.301 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00561/2.79, allocations: 1.445 MB / 0.8187 GB, free: 5.961 MB / 0.6544 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 (2): * Single equations (assignments): 1 * 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.009488/2.8, allocations: 2.277 MB / 0.821 GB, free: 4.023 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005461/2.8, allocations: 105.5 kB / 0.8211 GB, free: 3.953 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/2.8, allocations: 5.266 kB / 0.8211 GB, free: 3.949 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/2.8, allocations: 30.97 kB / 0.8211 GB, free: 3.926 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/2.801, allocations: 68.62 kB / 0.8212 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009628/2.802, allocations: 0.5542 MB / 0.8217 GB, free: 3.316 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/2.802, allocations: 0.7556 MB / 0.8225 GB, free: 2.535 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.404e-05/2.802, allocations: 32.52 kB / 0.8225 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of SimCode: time 4.51e-07/2.802, allocations: 0 / 0.8225 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of Templates: time 0.04616/2.848, allocations: 28.64 MB / 0.8504 GB, free: 5.988 MB / 0.6856 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)