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.8263/0.8263, allocations: 150.8 MB / 166.7 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 19.97 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1899, allocations: 31.32 MB / 236.1 MB, free: 5.438 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.745/1.935, allocations: 293.6 MB / 0.5173 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2203/2.155, allocations: 185.4 MB / 0.6984 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/2.156, allocations: 7.938 kB / 0.6984 GB, free: 3.832 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.0001852/2.156, allocations: 23.78 kB / 0.6984 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004218/2.156, allocations: 107.2 kB / 0.6985 GB, free: 3.703 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.4053/2.562, allocations: 9.962 MB / 0.7083 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007336/2.562, allocations: 378.6 kB / 0.7086 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/2.563, allocations: 206.8 kB / 0.7088 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/2.563, allocations: 153.6 kB / 0.709 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/2.563, allocations: 169.2 kB / 0.7091 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/2.563, allocations: 35.03 kB / 0.7092 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03661/2.6, allocations: 19.83 MB / 0.7285 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001417/2.6, allocations: 73.62 kB / 0.7286 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003209/2.6, allocations: 180.4 kB / 0.7288 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01526/2.616, allocations: 6.746 MB / 0.7354 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/2.616, allocations: 3.188 kB / 0.7354 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.274e-06/2.616, allocations: 0.875 kB / 0.7354 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.135e-06/2.616, allocations: 1.203 kB / 0.7354 GB, free: 4.016 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.006818/2.622, allocations: 1.747 MB / 0.7371 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/2.623, allocations: 8.5 kB / 0.7371 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.599e-05/2.623, allocations: 40.97 kB / 0.7371 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/2.623, allocations: 285 kB / 0.7374 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/2.623, allocations: 25.53 kB / 0.7374 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/2.623, allocations: 31.44 kB / 0.7375 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007077/2.624, allocations: 361.9 kB / 0.7378 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/2.624, allocations: 5.406 kB / 0.7378 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/2.624, allocations: 13.47 kB / 0.7378 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/2.624, allocations: 12.41 kB / 0.7378 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/2.624, allocations: 232.9 kB / 0.7381 GB, free: 18.64 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0699/2.694, allocations: 31.91 MB / 0.7692 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/2.695, allocations: 68.48 kB / 0.7693 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.82e-05/2.695, allocations: 38.64 kB / 0.7693 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2336/2.928, allocations: 118.3 MB / 0.8848 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/2.928, allocations: 30.56 kB / 0.8848 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.954e-06/2.928, allocations: 0 / 0.8848 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0005042/2.929, allocations: 125.6 kB / 0.885 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/2.929, allocations: 51.41 kB / 0.885 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/2.929, allocations: 306.8 kB / 0.8853 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/2.929, allocations: 26.8 kB / 0.8853 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/2.93, allocations: 224.4 kB / 0.8855 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/2.93, allocations: 23.27 kB / 0.8856 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.761e-05/2.93, allocations: 55.08 kB / 0.8856 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001213/2.93, allocations: 337.4 kB / 0.8859 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/2.93, allocations: 45.19 kB / 0.886 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/2.93, allocations: 140.3 kB / 0.8861 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/2.93, allocations: 194.7 kB / 0.8863 GB, free: 9.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/2.93, allocations: 5.203 kB / 0.8863 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004729/2.931, allocations: 223.7 kB / 0.8865 GB, free: 9.762 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/2.931, allocations: 12.09 kB / 0.8865 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/2.931, allocations: 0 / 0.8865 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.289e-05/2.931, allocations: 15.92 kB / 0.8865 GB, free: 9.734 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006738/2.932, allocations: 114.4 kB / 0.8866 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/2.932, allocations: 6.906 kB / 0.8867 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/2.932, allocations: 46.89 kB / 0.8867 GB, free: 9.582 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/2.932, allocations: 12 kB / 0.8867 GB, free: 9.57 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.0001779/2.932, allocations: 149.3 kB / 0.8869 GB, free: 9.438 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/2.932, allocations: 19.72 kB / 0.8869 GB, free: 9.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/2.933, allocations: 117.5 kB / 0.887 GB, free: 9.316 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/2.933, allocations: 4 kB / 0.887 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/2.933, allocations: 0 / 0.887 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/2.933, allocations: 0 / 0.887 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4263/3.359, allocations: 114.5 MB / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/3.359, allocations: 0 / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.822e-05/3.359, allocations: 12.92 kB / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/3.359, allocations: 13.73 kB / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/3.359, allocations: 5.5 kB / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/3.359, allocations: 2.938 kB / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/3.359, allocations: 0 / 0.9988 GB, free: 461 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/3.359, allocations: 149.2 kB / 0.999 GB, free: 460.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/3.359, allocations: 113.9 kB / 0.9991 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/3.36, allocations: 2.906 kB / 0.9991 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/3.36, allocations: 10.75 kB / 0.9991 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.648e-05/3.36, allocations: 3.766 kB / 0.9991 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/3.36, allocations: 9.031 kB / 0.9991 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002178/3.36, allocations: 221.3 kB / 0.9993 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/3.36, allocations: 0 / 0.9993 GB, free: 460.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.004678/3.365, allocations: 1.432 MB / 1.001 GB, free: 460.7 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.01026/3.375, allocations: 2.274 MB / 1.003 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005399/3.375, allocations: 120 kB / 1.003 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/3.376, allocations: 3.984 kB / 1.003 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/3.376, allocations: 24.12 kB / 1.003 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/3.376, allocations: 85.98 kB / 1.003 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/3.377, allocations: 0.5767 MB / 1.004 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/3.378, allocations: 0.7602 MB / 1.004 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/3.378, allocations: 36.11 kB / 1.004 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of SimCode: time 4.71e-07/3.378, allocations: 0 / 1.004 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.04713/3.425, allocations: 27.62 MB / 1.031 GB, free: 451.3 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)