Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8134/0.8134, allocations: 150.9 MB / 167.1 MB, free: 14.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 15.97 kB / 206 MB, free: 9.012 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1313, allocations: 31.33 MB / 237.3 MB, free: 5.75 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.TestInvSingularPressureLoss): time 1.589/1.72, allocations: 294.5 MB / 0.5194 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1868/1.907, allocations: 187.4 MB / 0.7024 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/1.907, allocations: 7.938 kB / 0.7024 GB, free: 1.379 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33: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.0001302/1.907, allocations: 40.72 kB / 0.7024 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002641/1.908, allocations: 111 kB / 0.7025 GB, free: 1.23 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.2917/2.199, allocations: 11.31 MB / 0.7136 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005021/2.2, allocations: 384 kB / 0.7139 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/2.2, allocations: 198.8 kB / 0.7141 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/2.2, allocations: 160.6 kB / 0.7143 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/2.201, allocations: 162.2 kB / 0.7144 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/2.201, allocations: 37.91 kB / 0.7145 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03279/2.233, allocations: 19.89 MB / 0.7339 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/2.234, allocations: 74.73 kB / 0.734 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002385/2.234, allocations: 177.3 kB / 0.7341 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02057/2.254, allocations: 9.737 MB / 0.7436 GB, free: 464 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/2.254, allocations: 2.625 kB / 0.7436 GB, free: 464 kB / 0.5762 GB Notification: Performance of FrontEnd: time 2.354e-06/2.254, allocations: 0.75 kB / 0.7436 GB, free: 464 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.076e-06/2.254, allocations: 1.094 kB / 0.7436 GB, free: 464 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004578/2.259, allocations: 1.744 MB / 0.7453 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/2.259, allocations: 15.48 kB / 0.7454 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.224e-05/2.259, allocations: 39.78 kB / 0.7454 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/2.26, allocations: 300.5 kB / 0.7457 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/2.26, allocations: 24.69 kB / 0.7457 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/2.26, allocations: 31.97 kB / 0.7457 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/2.26, allocations: 359.2 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/2.26, allocations: 0.9375 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/2.26, allocations: 17.5 kB / 0.7461 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/2.26, allocations: 14.09 kB / 0.7461 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/2.261, allocations: 224.3 kB / 0.7463 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07203/2.333, allocations: 32.14 MB / 0.7777 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/2.333, allocations: 64.55 kB / 0.7778 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.425e-05/2.333, allocations: 33.75 kB / 0.7778 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2337/2.567, allocations: 119 MB / 0.894 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/2.567, allocations: 30.56 kB / 0.894 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.024e-06/2.567, allocations: 4 kB / 0.894 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004644/2.567, allocations: 121.5 kB / 0.8941 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/2.567, allocations: 51.41 kB / 0.8942 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/2.568, allocations: 310.9 kB / 0.8945 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/2.568, allocations: 25.7 kB / 0.8945 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/2.568, allocations: 228.1 kB / 0.8947 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/2.568, allocations: 23.33 kB / 0.8947 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.124e-05/2.568, allocations: 47.7 kB / 0.8948 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001107/2.568, allocations: 337 kB / 0.8951 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/2.568, allocations: 42.97 kB / 0.8951 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/2.569, allocations: 146.6 kB / 0.8953 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/2.569, allocations: 198 kB / 0.8955 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/2.569, allocations: 1.203 kB / 0.8955 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004535/2.569, allocations: 225.4 kB / 0.8957 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/2.569, allocations: 8 kB / 0.8957 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/2.569, allocations: 4 kB / 0.8957 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/2.569, allocations: 7.938 kB / 0.8957 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006783/2.57, allocations: 114.1 kB / 0.8958 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/2.57, allocations: 19.83 kB / 0.8958 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/2.57, allocations: 34.66 kB / 0.8959 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/2.57, allocations: 13.86 kB / 0.8959 GB, free: 1.941 MB / 0.7325 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 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001431/2.57, allocations: 146.4 kB / 0.896 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/2.571, allocations: 23.72 kB / 0.896 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/2.571, allocations: 115.2 kB / 0.8962 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/2.571, allocations: 0 / 0.8962 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/2.571, allocations: 0 / 0.8962 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/2.571, allocations: 0 / 0.8962 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3835/2.954, allocations: 115.2 MB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/2.954, allocations: 4.125 kB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/2.954, allocations: 16.22 kB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/2.954, allocations: 3.75 kB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/2.954, allocations: 8.109 kB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/2.955, allocations: 2.531 kB / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.955, allocations: 0 / 1.009 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/2.955, allocations: 149.3 kB / 1.009 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.821e-05/2.955, allocations: 109.5 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/2.955, allocations: 6.641 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/2.955, allocations: 2.812 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/2.955, allocations: 4.109 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/2.955, allocations: 3.438 kB / 1.009 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001859/2.955, allocations: 228.8 kB / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/2.955, allocations: 0 / 1.009 GB, free: 459.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003479/2.959, allocations: 1.433 MB / 1.011 GB, free: 459.3 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005736/2.964, allocations: 2.195 MB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004246/2.965, allocations: 118.3 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/2.965, allocations: 6.188 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.822e-05/2.965, allocations: 26.7 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/2.965, allocations: 76.23 kB / 1.013 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/2.966, allocations: 448.7 kB / 1.013 GB, free: 458.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/2.966, allocations: 0.7633 MB / 1.014 GB, free: 458.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001405/2.967, allocations: 46.3 kB / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/2.967, allocations: 25.5 kB / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/2.967, allocations: 0 / 1.014 GB, free: 458 MB / 0.8262 GB Notification: Performance of Templates: time 0.04571/3.012, allocations: 45.16 MB / 1.058 GB, free: 425.8 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)