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.8057/0.8057, allocations: 150.9 MB / 167.1 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003408, allocations: 15.98 kB / 205.9 MB, free: 9.02 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1451, allocations: 31.32 MB / 237.3 MB, free: 5.746 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.612/1.757, allocations: 294.5 MB / 0.5193 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2126/1.97, allocations: 187.4 MB / 0.7023 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/1.971, allocations: 7.938 kB / 0.7023 GB, free: 1.414 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.0001496/1.971, allocations: 40.77 kB / 0.7024 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002837/1.971, allocations: 107 kB / 0.7025 GB, free: 1.27 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.3027/2.274, allocations: 11.3 MB / 0.7135 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004008/2.274, allocations: 369.9 kB / 0.7139 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/2.274, allocations: 193.5 kB / 0.714 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/2.275, allocations: 140.5 kB / 0.7142 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/2.275, allocations: 163.1 kB / 0.7143 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/2.275, allocations: 33 kB / 0.7144 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03133/2.306, allocations: 19.89 MB / 0.7338 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/2.306, allocations: 69.27 kB / 0.7339 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002608/2.307, allocations: 174.3 kB / 0.734 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02068/2.327, allocations: 9.721 MB / 0.7435 GB, free: 492 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/2.327, allocations: 5.984 kB / 0.7435 GB, free: 488 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.684e-06/2.327, allocations: 0.9688 kB / 0.7435 GB, free: 488 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.636e-06/2.327, allocations: 0 / 0.7435 GB, free: 488 kB / 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.004379/2.332, allocations: 1.733 MB / 0.7452 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/2.332, allocations: 9.844 kB / 0.7452 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.617e-05/2.332, allocations: 43.69 kB / 0.7453 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/2.332, allocations: 302.7 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/2.332, allocations: 24.97 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/2.332, allocations: 31.69 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/2.333, allocations: 347.8 kB / 0.7459 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/2.333, allocations: 0.875 kB / 0.7459 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/2.333, allocations: 16.97 kB / 0.746 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/2.333, allocations: 8.25 kB / 0.746 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/2.333, allocations: 212 kB / 0.7462 GB, free: 14.9 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.008005/2.341, allocations: 6.083 MB / 0.7521 GB, free: 9.766 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/2.341, allocations: 58.92 kB / 0.7522 GB, free: 9.738 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.651e-05/2.341, allocations: 17.8 kB / 0.7522 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.151/2.492, allocations: 71.39 MB / 0.8219 GB, free: 4.207 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/2.492, allocations: 33.47 kB / 0.8219 GB, free: 4.168 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.753e-06/2.492, allocations: 0 / 0.8219 GB, free: 4.168 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006695/2.493, allocations: 235.9 kB / 0.8221 GB, free: 3.938 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/2.493, allocations: 51.41 kB / 0.8222 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/2.493, allocations: 279 kB / 0.8225 GB, free: 3.641 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/2.493, allocations: 25.7 kB / 0.8225 GB, free: 3.609 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/2.494, allocations: 229.1 kB / 0.8227 GB, free: 3.418 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/2.494, allocations: 19.31 kB / 0.8227 GB, free: 3.402 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-05/2.494, allocations: 55.05 kB / 0.8228 GB, free: 3.359 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001102/2.494, allocations: 333.8 kB / 0.8231 GB, free: 3.031 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.555e-05/2.494, allocations: 38.36 kB / 0.8231 GB, free: 3.004 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/2.494, allocations: 140.6 kB / 0.8233 GB, free: 2.84 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/2.494, allocations: 187 kB / 0.8234 GB, free: 2.656 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/2.494, allocations: 4 kB / 0.8234 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004434/2.495, allocations: 242.7 kB / 0.8237 GB, free: 2.473 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/2.495, allocations: 16.3 kB / 0.8237 GB, free: 2.461 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/2.495, allocations: 9.203 kB / 0.8237 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007777/2.496, allocations: 108 kB / 0.8238 GB, free: 2.348 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/2.496, allocations: 35.17 kB / 0.8238 GB, free: 2.316 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003967/2.496, allocations: 0.5646 MB / 0.8244 GB, free: 1.746 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/2.496, allocations: 35.09 kB / 0.8244 GB, free: 1.715 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/2.496, allocations: 11.98 kB / 0.8244 GB, free: 1.703 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.0001378/2.496, allocations: 146.3 kB / 0.8246 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.801e-05/2.497, allocations: 23.75 kB / 0.8246 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/2.497, allocations: 132.5 kB / 0.8247 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/2.497, allocations: 4 kB / 0.8247 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/2.497, allocations: 0 / 0.8247 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/2.497, allocations: 1.094 kB / 0.8247 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/2.497, allocations: 290.5 kB / 0.825 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/2.497, allocations: 3.938 kB / 0.825 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.155e-05/2.497, allocations: 4 kB / 0.825 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003908/2.498, allocations: 74.83 kB / 0.8251 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/2.498, allocations: 4 kB / 0.8251 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003524/2.498, allocations: 0.5611 MB / 0.8256 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/2.498, allocations: 4.031 kB / 0.8256 GB, free: 0.4922 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/2.498, allocations: 131.5 kB / 0.8258 GB, free: 368 kB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.281e-05/2.498, allocations: 98.69 kB / 0.8259 GB, free: 252 kB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/2.498, allocations: 1.844 kB / 0.8259 GB, free: 252 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.563e-05/2.498, allocations: 12.69 kB / 0.8259 GB, free: 240 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/2.498, allocations: 1.25 kB / 0.8259 GB, free: 240 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/2.498, allocations: 7.938 kB / 0.8259 GB, free: 232 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002071/2.499, allocations: 203.2 kB / 0.8261 GB, free: 68 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/2.499, allocations: 0 / 0.8261 GB, free: 68 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003923/2.503, allocations: 1.433 MB / 0.8275 GB, free: 14.73 MB / 0.67 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.006452/2.509, allocations: 2.203 MB / 0.8296 GB, free: 12.85 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0004245/2.51, allocations: 107.2 kB / 0.8297 GB, free: 12.77 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.51, allocations: 0 / 0.8297 GB, free: 12.77 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/2.51, allocations: 27.66 kB / 0.8298 GB, free: 12.75 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/2.51, allocations: 62.41 kB / 0.8298 GB, free: 12.71 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008252/2.511, allocations: 427.7 kB / 0.8302 GB, free: 12.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/2.511, allocations: 0.7595 MB / 0.831 GB, free: 11.51 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001091/2.511, allocations: 34.41 kB / 0.831 GB, free: 11.48 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/2.511, allocations: 27.38 kB / 0.831 GB, free: 11.45 MB / 0.67 GB Notification: Performance of SimCode: time 2.3e-07/2.511, allocations: 5.203 kB / 0.831 GB, free: 11.45 MB / 0.67 GB Notification: Performance of Templates: time 0.05777/2.569, allocations: 45.33 MB / 0.8753 GB, free: 14.17 MB / 0.7169 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)