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.8574/0.8574, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003775, allocations: 23.95 kB / 206 MB, free: 9.051 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 31.32 MB / 237.3 MB, free: 5.707 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.575/1.706, allocations: 294.5 MB / 0.5193 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1846/1.891, allocations: 187.4 MB / 0.7023 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/1.891, allocations: 7.938 kB / 0.7023 GB, free: 1.426 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.0001217/1.891, allocations: 37 kB / 0.7024 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002509/1.891, allocations: 115 kB / 0.7025 GB, free: 1.277 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.279/2.17, allocations: 11.3 MB / 0.7135 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003709/2.171, allocations: 365.4 kB / 0.7139 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002564/2.171, allocations: 196.7 kB / 0.7141 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/2.171, allocations: 152.5 kB / 0.7142 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/2.171, allocations: 154.4 kB / 0.7143 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/2.171, allocations: 30.94 kB / 0.7144 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02947/2.201, allocations: 19.89 MB / 0.7338 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/2.201, allocations: 74.53 kB / 0.7339 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002191/2.201, allocations: 174.1 kB / 0.734 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01893/2.22, allocations: 9.722 MB / 0.7435 GB, free: 492 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/2.22, allocations: 6.844 kB / 0.7435 GB, free: 492 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/2.22, allocations: 0 / 0.7435 GB, free: 492 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.895e-06/2.22, allocations: 0 / 0.7435 GB, free: 492 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.004022/2.224, allocations: 1.73 MB / 0.7452 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/2.224, allocations: 11.25 kB / 0.7452 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/2.224, allocations: 42.19 kB / 0.7453 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/2.225, allocations: 302.5 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/2.225, allocations: 27.84 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/2.225, allocations: 32.62 kB / 0.7456 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/2.225, allocations: 346 kB / 0.7459 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/2.225, allocations: 0 / 0.7459 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.575e-05/2.225, allocations: 18.12 kB / 0.746 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/2.225, allocations: 10.19 kB / 0.746 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003513/2.226, allocations: 211.5 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.007905/2.234, allocations: 6.084 MB / 0.7521 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/2.234, allocations: 52.12 kB / 0.7522 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/2.234, allocations: 24.08 kB / 0.7522 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1466/2.38, allocations: 71.39 MB / 0.8219 GB, free: 4.223 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/2.381, allocations: 33.75 kB / 0.8219 GB, free: 4.184 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.734e-06/2.381, allocations: 0 / 0.8219 GB, free: 4.184 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006789/2.381, allocations: 223.9 kB / 0.8222 GB, free: 3.957 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/2.381, allocations: 61.73 kB / 0.8222 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/2.382, allocations: 271.3 kB / 0.8225 GB, free: 3.66 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/2.382, allocations: 26.8 kB / 0.8225 GB, free: 3.629 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/2.382, allocations: 229.8 kB / 0.8227 GB, free: 3.438 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/2.382, allocations: 19.19 kB / 0.8227 GB, free: 3.422 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/2.382, allocations: 55.53 kB / 0.8228 GB, free: 3.375 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001082/2.382, allocations: 337.4 kB / 0.8231 GB, free: 3.047 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.811e-05/2.382, allocations: 38.59 kB / 0.8231 GB, free: 3.02 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/2.382, allocations: 139.2 kB / 0.8233 GB, free: 2.855 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/2.382, allocations: 187.4 kB / 0.8235 GB, free: 2.668 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/2.382, allocations: 1.094 kB / 0.8235 GB, free: 2.668 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004724/2.383, allocations: 249.5 kB / 0.8237 GB, free: 2.48 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/2.383, allocations: 12.06 kB / 0.8237 GB, free: 2.469 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/2.383, allocations: 4 kB / 0.8237 GB, free: 2.465 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008348/2.384, allocations: 108.3 kB / 0.8238 GB, free: 2.359 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/2.384, allocations: 38.52 kB / 0.8238 GB, free: 2.328 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004304/2.384, allocations: 0.5614 MB / 0.8244 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/2.385, allocations: 34.97 kB / 0.8244 GB, free: 1.73 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/2.385, allocations: 15.61 kB / 0.8244 GB, free: 1.719 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.0001438/2.385, allocations: 146.1 kB / 0.8246 GB, free: 1.586 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/2.385, allocations: 32.27 kB / 0.8246 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003453/2.385, allocations: 125.4 kB / 0.8247 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/2.385, allocations: 4 kB / 0.8247 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/2.385, allocations: 0 / 0.8247 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/2.385, allocations: 7.094 kB / 0.8247 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/2.385, allocations: 289.4 kB / 0.825 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.385, allocations: 3.938 kB / 0.825 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.5e-05/2.385, allocations: 4 kB / 0.825 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003988/2.386, allocations: 68.2 kB / 0.8251 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/2.386, allocations: 4 kB / 0.8251 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003785/2.386, allocations: 0.5609 MB / 0.8256 GB, free: 0.5117 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/2.386, allocations: 8.328 kB / 0.8257 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/2.387, allocations: 131.3 kB / 0.8258 GB, free: 384 kB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.662e-05/2.387, allocations: 100.2 kB / 0.8259 GB, free: 268 kB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/2.387, allocations: 64 / 0.8259 GB, free: 268 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.489e-05/2.387, allocations: 8 kB / 0.8259 GB, free: 260 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-05/2.387, allocations: 3.281 kB / 0.8259 GB, free: 260 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/2.387, allocations: 7.938 kB / 0.8259 GB, free: 252 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001994/2.387, allocations: 204.6 kB / 0.8261 GB, free: 88 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1.51e-07/2.387, allocations: 0 / 0.8261 GB, free: 88 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00379/2.391, allocations: 1.433 MB / 0.8275 GB, free: 14.75 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.005692/2.396, allocations: 2.203 MB / 0.8296 GB, free: 12.86 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0003533/2.397, allocations: 106.7 kB / 0.8297 GB, free: 12.79 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/2.397, allocations: 0 / 0.8297 GB, free: 12.79 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 9.752e-05/2.397, allocations: 32.06 kB / 0.8298 GB, free: 12.77 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/2.397, allocations: 64.11 kB / 0.8298 GB, free: 12.72 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007289/2.398, allocations: 417.8 kB / 0.8302 GB, free: 12.31 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/2.398, allocations: 0.7621 MB / 0.831 GB, free: 11.53 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001045/2.399, allocations: 31.38 kB / 0.831 GB, free: 11.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/2.399, allocations: 27.44 kB / 0.831 GB, free: 11.47 MB / 0.67 GB Notification: Performance of SimCode: time 2.2e-07/2.399, allocations: 0 / 0.831 GB, free: 11.47 MB / 0.67 GB Notification: Performance of Templates: time 0.05615/2.455, allocations: 45.34 MB / 0.8753 GB, free: 14.2 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 gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)