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.9543/0.9543, allocations: 150.9 MB / 166.4 MB, free: 14.23 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 11.98 kB / 204.5 MB, free: 9.621 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1432, allocations: 31.34 MB / 235.9 MB, free: 5.457 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.638/1.781, allocations: 294.7 MB / 0.5181 GB, free: 13.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1958/1.977, allocations: 187.4 MB / 0.7011 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/1.977, allocations: 7.938 kB / 0.7012 GB, free: 1.508 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.000123/1.977, allocations: 40.86 kB / 0.7012 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002894/1.977, allocations: 111 kB / 0.7013 GB, free: 1.359 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.3123/2.29, allocations: 11.3 MB / 0.7123 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003735/2.29, allocations: 370.2 kB / 0.7127 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002209/2.29, allocations: 191.1 kB / 0.7129 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/2.29, allocations: 142 kB / 0.713 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/2.291, allocations: 163.2 kB / 0.7132 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/2.291, allocations: 31.31 kB / 0.7132 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03017/2.321, allocations: 19.63 MB / 0.7324 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001244/2.321, allocations: 74.91 kB / 0.7324 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002686/2.321, allocations: 173.5 kB / 0.7326 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02233/2.344, allocations: 9.738 MB / 0.7421 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/2.344, allocations: 0.9688 kB / 0.7421 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.764e-06/2.344, allocations: 0 / 0.7421 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.618e-06/2.344, allocations: 1.062 kB / 0.7421 GB, free: 0.8008 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.004963/2.349, allocations: 1.738 MB / 0.7438 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/2.349, allocations: 10.19 kB / 0.7438 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.447e-05/2.349, allocations: 43.56 kB / 0.7439 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/2.349, allocations: 291.7 kB / 0.7441 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/2.349, allocations: 24.53 kB / 0.7442 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/2.349, allocations: 32.47 kB / 0.7442 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004623/2.35, allocations: 347 kB / 0.7445 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/2.35, allocations: 0.9375 kB / 0.7445 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/2.35, allocations: 16.97 kB / 0.7445 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/2.35, allocations: 8.5 kB / 0.7445 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/2.35, allocations: 214.2 kB / 0.7448 GB, free: 15.22 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.008325/2.358, allocations: 6.091 MB / 0.7507 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/2.359, allocations: 59.12 kB / 0.7508 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.999e-05/2.359, allocations: 24.05 kB / 0.7508 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1528/2.511, allocations: 70.91 MB / 0.82 GB, free: 5.109 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/2.512, allocations: 37.34 kB / 0.8201 GB, free: 5.07 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 2.114e-06/2.512, allocations: 0 / 0.8201 GB, free: 5.07 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0008707/2.512, allocations: 233.2 kB / 0.8203 GB, free: 4.832 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/2.512, allocations: 54.59 kB / 0.8203 GB, free: 4.77 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/2.513, allocations: 271.1 kB / 0.8206 GB, free: 4.543 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/2.513, allocations: 25.7 kB / 0.8206 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/2.513, allocations: 226.2 kB / 0.8208 GB, free: 4.32 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/2.513, allocations: 19.12 kB / 0.8209 GB, free: 4.305 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/2.513, allocations: 59.22 kB / 0.8209 GB, free: 4.258 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001177/2.513, allocations: 333.8 kB / 0.8212 GB, free: 3.93 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/2.513, allocations: 41.97 kB / 0.8213 GB, free: 3.902 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/2.514, allocations: 135.6 kB / 0.8214 GB, free: 3.738 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/2.514, allocations: 186.8 kB / 0.8216 GB, free: 3.555 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/2.514, allocations: 0 / 0.8216 GB, free: 3.555 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004839/2.514, allocations: 246.3 kB / 0.8218 GB, free: 3.371 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/2.514, allocations: 12.06 kB / 0.8218 GB, free: 3.359 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/2.514, allocations: 4 kB / 0.8218 GB, free: 3.355 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008363/2.515, allocations: 114.9 kB / 0.8219 GB, free: 3.246 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/2.515, allocations: 42.73 kB / 0.822 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003869/2.516, allocations: 0.5509 MB / 0.8225 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/2.516, allocations: 35.3 kB / 0.8226 GB, free: 2.621 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/2.516, allocations: 11.38 kB / 0.8226 GB, free: 2.613 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.0001322/2.516, allocations: 146.1 kB / 0.8227 GB, free: 2.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.861e-05/2.516, allocations: 27.72 kB / 0.8227 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000339/2.517, allocations: 129.4 kB / 0.8229 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/2.517, allocations: 4.281 kB / 0.8229 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/2.517, allocations: 8 kB / 0.8229 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/2.517, allocations: 3.984 kB / 0.8229 GB, free: 2.328 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/2.517, allocations: 282.5 kB / 0.8231 GB, free: 2.047 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/2.517, allocations: 3.938 kB / 0.8231 GB, free: 2.043 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.555e-05/2.517, allocations: 4 kB / 0.8231 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004071/2.517, allocations: 71.58 kB / 0.8232 GB, free: 1.973 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/2.517, allocations: 8 kB / 0.8232 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00034/2.518, allocations: 0.5534 MB / 0.8238 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/2.518, allocations: 3.094 kB / 0.8238 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/2.518, allocations: 136.3 kB / 0.8239 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.858e-05/2.518, allocations: 112.6 kB / 0.824 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/2.518, allocations: 3.625 kB / 0.824 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.049e-05/2.518, allocations: 4 kB / 0.824 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/2.518, allocations: 7.188 kB / 0.824 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/2.518, allocations: 7.922 kB / 0.824 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001906/2.518, allocations: 201 kB / 0.8242 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.5e-07/2.518, allocations: 0 / 0.8242 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.005771/2.524, allocations: 1.435 MB / 0.8256 GB, free: 15.64 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.009254/2.533, allocations: 2.201 MB / 0.8278 GB, free: 13.75 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0004546/2.534, allocations: 106.7 kB / 0.8279 GB, free: 13.68 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/2.534, allocations: 0 / 0.8279 GB, free: 13.68 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/2.534, allocations: 27.47 kB / 0.8279 GB, free: 13.66 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/2.535, allocations: 67.73 kB / 0.828 GB, free: 13.61 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008773/2.535, allocations: 434.4 kB / 0.8284 GB, free: 13.19 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/2.536, allocations: 0.7595 MB / 0.8291 GB, free: 12.4 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001639/2.536, allocations: 42.33 kB / 0.8292 GB, free: 12.36 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/2.536, allocations: 24.53 kB / 0.8292 GB, free: 12.34 MB / 0.67 GB Notification: Performance of SimCode: time 3.61e-07/2.536, allocations: 4 kB / 0.8292 GB, free: 12.33 MB / 0.67 GB Notification: Performance of Templates: time 0.05661/2.593, allocations: 45.34 MB / 0.8735 GB, free: 15.05 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)