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.8288/0.8288, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.000311, allocations: 15.19 kB / 237.1 MB, free: 1.758 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04962/0.04994, allocations: 31.35 MB / 268.4 MB, free: 7.023 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.583/1.633, allocations: 294.6 MB / 0.5498 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03911/1.672, allocations: 34.39 MB / 0.5834 GB, free: 10.67 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/1.673, allocations: 0 / 0.5834 GB, free: 10.67 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.0003568/1.673, allocations: 123.4 kB / 0.5835 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/1.673, allocations: 87.33 kB / 0.5836 GB, free: 10.46 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.02478/1.698, allocations: 9.739 MB / 0.5931 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004024/1.698, allocations: 278.7 kB / 0.5934 GB, free: 452 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/1.699, allocations: 112.1 kB / 0.5935 GB, free: 344 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/1.699, allocations: 119.5 kB / 0.5936 GB, free: 224 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/1.699, allocations: 99.5 kB / 0.5937 GB, free: 124 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/1.699, allocations: 16 kB / 0.5937 GB, free: 108 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02989/1.729, allocations: 17.89 MB / 0.6112 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.109e-05/1.729, allocations: 35.86 kB / 0.6112 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001495/1.729, allocations: 115.4 kB / 0.6113 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01698/1.746, allocations: 8.371 MB / 0.6195 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.746, allocations: 0 / 0.6195 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/1.746, allocations: 0 / 0.6195 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.468e-06/1.746, allocations: 0 / 0.6195 GB, free: 5.652 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.004019/1.75, allocations: 1.392 MB / 0.6209 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/1.75, allocations: 16.02 kB / 0.6209 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.397e-05/1.75, allocations: 27.66 kB / 0.6209 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/1.751, allocations: 218.6 kB / 0.6211 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/1.751, allocations: 16.38 kB / 0.6211 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/1.751, allocations: 20 kB / 0.6211 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/1.751, allocations: 254 kB / 0.6214 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/1.751, allocations: 7.938 kB / 0.6214 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/1.751, allocations: 8 kB / 0.6214 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/1.751, allocations: 11.98 kB / 0.6214 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/1.752, allocations: 152.4 kB / 0.6216 GB, free: 3.434 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.02052/1.772, allocations: 9.55 MB / 0.6309 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/1.772, allocations: 82.55 kB / 0.631 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/1.772, allocations: 56.89 kB / 0.631 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1627/1.935, allocations: 77.73 MB / 0.7069 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/1.935, allocations: 30.56 kB / 0.707 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.555e-06/1.935, allocations: 0 / 0.707 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005912/1.936, allocations: 207.7 kB / 0.7071 GB, free: 2.008 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/1.936, allocations: 55.41 kB / 0.7072 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/1.936, allocations: 228 kB / 0.7074 GB, free: 1.711 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/1.936, allocations: 33.7 kB / 0.7075 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.565e-05/1.936, allocations: 136.3 kB / 0.7076 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/1.936, allocations: 70.91 kB / 0.7076 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/1.936, allocations: 45.64 kB / 0.7077 GB, free: 1.414 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001073/1.936, allocations: 338.8 kB / 0.708 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/1.937, allocations: 51.97 kB / 0.7081 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/1.937, allocations: 92.2 kB / 0.7082 GB, free: 0.918 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/1.937, allocations: 154.4 kB / 0.7083 GB, free: 0.7539 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.937, allocations: 0 / 0.7083 GB, free: 0.7539 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003517/1.937, allocations: 204.5 kB / 0.7085 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/1.937, allocations: 8 kB / 0.7085 GB, free: 0.543 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/1.937, allocations: 0 / 0.7085 GB, free: 0.543 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/1.937, allocations: 4 kB / 0.7085 GB, free: 0.5391 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007898/1.938, allocations: 99.94 kB / 0.7086 GB, free: 452 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/1.938, allocations: 0 / 0.7086 GB, free: 452 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/1.938, allocations: 31.67 kB / 0.7086 GB, free: 420 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/1.938, allocations: 8 kB / 0.7086 GB, free: 412 kB / 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 0.0001286/1.939, allocations: 137.7 kB / 0.7088 GB, free: 264 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/1.939, allocations: 19.72 kB / 0.7088 GB, free: 244 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1741/2.113, allocations: 324.1 kB / 0.7091 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002274/2.113, allocations: 151.4 kB / 0.7092 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/2.113, allocations: 4.438 kB / 0.7092 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/2.113, allocations: 0 / 0.7092 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008404/2.114, allocations: 0.6016 MB / 0.7098 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/2.114, allocations: 1.219 kB / 0.7098 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005495/2.114, allocations: 92.91 kB / 0.7099 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/2.114, allocations: 4.094 kB / 0.7099 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/2.114, allocations: 8.766 kB / 0.7099 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/2.114, allocations: 1.344 kB / 0.7099 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/2.114, allocations: 0.625 kB / 0.7099 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/2.115, allocations: 284.1 kB / 0.7102 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/2.115, allocations: 111.1 kB / 0.7103 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/2.115, allocations: 7.656 kB / 0.7103 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/2.115, allocations: 6.297 kB / 0.7103 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/2.115, allocations: 8.219 kB / 0.7103 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/2.115, allocations: 3.125 kB / 0.7103 GB, free: 215 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001693/2.115, allocations: 212.9 kB / 0.7105 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.1e-07/2.115, allocations: 0 / 0.7105 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002787/2.118, allocations: 1.174 MB / 0.7117 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.004293/2.122, allocations: 1.728 MB / 0.7134 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004268/2.123, allocations: 188.4 kB / 0.7136 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.123, allocations: 3.5 kB / 0.7136 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/2.123, allocations: 73.92 kB / 0.7136 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.0006306/2.124, allocations: 94.16 kB / 0.7137 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006718/2.124, allocations: 459.4 kB / 0.7142 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/2.124, allocations: 0.7553 MB / 0.7149 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.468e-05/2.125, allocations: 25.36 kB / 0.7149 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/2.125, allocations: 24.02 kB / 0.7149 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.4e-07/2.125, allocations: 1.156 kB / 0.7149 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.04124/2.166, allocations: 41.2 MB / 0.7552 GB, free: 192.5 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)