Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7332/0.7332, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003027, allocations: 16.89 kB / 237.8 MB, free: 1.926 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04506/0.04538, allocations: 31.35 MB / 269.1 MB, free: 7.164 MB / 222.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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.393/1.439, allocations: 294.5 MB / 0.5504 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03327/1.472, allocations: 34.38 MB / 0.584 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/1.472, allocations: 4 kB / 0.584 GB, free: 10.74 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:26:3-28:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:29:3-30:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003266/1.472, allocations: 100.9 kB / 0.5841 GB, free: 10.64 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/1.473, allocations: 75.31 kB / 0.5842 GB, free: 10.57 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02118/1.494, allocations: 9.56 MB / 0.5935 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000376/1.494, allocations: 282.7 kB / 0.5938 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/1.494, allocations: 108.2 kB / 0.5939 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/1.495, allocations: 123.5 kB / 0.594 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/1.495, allocations: 91.52 kB / 0.5941 GB, free: 412 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/1.495, allocations: 16 kB / 0.5941 GB, free: 396 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02577/1.52, allocations: 17.89 MB / 0.6116 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.601e-05/1.521, allocations: 39.86 kB / 0.6116 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001357/1.521, allocations: 115.4 kB / 0.6117 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01498/1.536, allocations: 8.367 MB / 0.6199 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.536, allocations: 4 kB / 0.6199 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/1.536, allocations: 0 / 0.6199 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.424e-06/1.536, allocations: 0 / 0.6199 GB, free: 5.934 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0031/1.539, allocations: 1.396 MB / 0.6212 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/1.539, allocations: 8.031 kB / 0.6213 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/1.539, allocations: 27.66 kB / 0.6213 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/1.539, allocations: 216.9 kB / 0.6215 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/1.539, allocations: 16.38 kB / 0.6215 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/1.539, allocations: 20 kB / 0.6215 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/1.54, allocations: 266 kB / 0.6218 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/1.54, allocations: 0 / 0.6218 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/1.54, allocations: 4 kB / 0.6218 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/1.54, allocations: 15.94 kB / 0.6218 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/1.54, allocations: 148.4 kB / 0.6219 GB, free: 3.723 MB / 0.4981 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.01736/1.557, allocations: 9.562 MB / 0.6313 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/1.557, allocations: 82.48 kB / 0.6314 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.119e-05/1.558, allocations: 60.89 kB / 0.6314 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1387/1.696, allocations: 77.72 MB / 0.7073 GB, free: 2.527 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/1.696, allocations: 34.56 kB / 0.7073 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 1.803e-06/1.696, allocations: 0 / 0.7073 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0004838/1.697, allocations: 203.7 kB / 0.7075 GB, free: 2.281 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/1.697, allocations: 51.41 kB / 0.7076 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/1.697, allocations: 236 kB / 0.7078 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/1.697, allocations: 25.7 kB / 0.7078 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/1.697, allocations: 140.3 kB / 0.708 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/1.697, allocations: 74.84 kB / 0.708 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/1.697, allocations: 41.7 kB / 0.7081 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/1.697, allocations: 334.8 kB / 0.7084 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/1.697, allocations: 47.98 kB / 0.7085 GB, free: 1.305 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/1.698, allocations: 96.2 kB / 0.7085 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/1.698, allocations: 150.4 kB / 0.7087 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.698, allocations: 4 kB / 0.7087 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003047/1.698, allocations: 204.5 kB / 0.7089 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.698, allocations: 9.391 kB / 0.7089 GB, free: 0.8203 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/1.698, allocations: 0 / 0.7089 GB, free: 0.8203 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/1.698, allocations: 7.938 kB / 0.7089 GB, free: 0.8125 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/1.699, allocations: 96 kB / 0.709 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/1.699, allocations: 7.938 kB / 0.709 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/1.699, allocations: 27.69 kB / 0.709 GB, free: 0.6836 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/1.699, allocations: 4 kB / 0.709 GB, free: 0.6797 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.831e-05/1.699, allocations: 133.8 kB / 0.7092 GB, free: 0.5391 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/1.699, allocations: 31.7 kB / 0.7092 GB, free: 0.5078 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004006/1.7, allocations: 319.7 kB / 0.7095 GB, free: 156 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002116/1.7, allocations: 149 kB / 0.7096 GB, free: 4 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.7, allocations: 3.938 kB / 0.7096 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/1.7, allocations: 0 / 0.7096 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1501/1.85, allocations: 0.6028 MB / 0.7102 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/1.85, allocations: 1.438 kB / 0.7102 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005007/1.85, allocations: 94.09 kB / 0.7103 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/1.85, allocations: 1.188 kB / 0.7103 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/1.85, allocations: 6 kB / 0.7103 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/1.85, allocations: 1.984 kB / 0.7103 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.85, allocations: 1.188 kB / 0.7103 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/1.851, allocations: 281.8 kB / 0.7106 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/1.851, allocations: 113.7 kB / 0.7107 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/1.851, allocations: 10.28 kB / 0.7107 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/1.851, allocations: 7.078 kB / 0.7107 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/1.851, allocations: 9.812 kB / 0.7107 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/1.851, allocations: 3.625 kB / 0.7107 GB, free: 215 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001482/1.851, allocations: 208.1 kB / 0.7109 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.851, allocations: 2.406 kB / 0.7109 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002543/1.854, allocations: 1.17 MB / 0.7121 GB, free: 214.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.003828/1.858, allocations: 1.727 MB / 0.7138 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003751/1.858, allocations: 193.4 kB / 0.7139 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/1.858, allocations: 0 / 0.7139 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/1.858, allocations: 70.34 kB / 0.714 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/1.859, allocations: 99.81 kB / 0.7141 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006238/1.859, allocations: 490.9 kB / 0.7146 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/1.86, allocations: 0.7556 MB / 0.7153 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/1.86, allocations: 23.47 kB / 0.7153 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/1.86, allocations: 0.5469 kB / 0.7153 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.0253/1.885, allocations: 23.31 MB / 0.7381 GB, free: 207.6 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)