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.8263/0.8263, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 16.14 kB / 237.1 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04881/0.04917, allocations: 31.35 MB / 268.4 MB, free: 7.047 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.599/1.648, allocations: 294.5 MB / 0.5498 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03958/1.687, allocations: 34.38 MB / 0.5833 GB, free: 10.9 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/1.688, allocations: 4 kB / 0.5833 GB, free: 10.89 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.0003375/1.688, allocations: 99.38 kB / 0.5834 GB, free: 10.8 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/1.688, allocations: 75.33 kB / 0.5835 GB, free: 10.72 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.02236/1.711, allocations: 9.561 MB / 0.5928 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004112/1.711, allocations: 278.7 kB / 0.5931 GB, free: 0.875 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/1.711, allocations: 108.1 kB / 0.5932 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/1.711, allocations: 127.5 kB / 0.5933 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/1.712, allocations: 95.5 kB / 0.5934 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/1.712, allocations: 20 kB / 0.5934 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02862/1.74, allocations: 17.88 MB / 0.6109 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/1.74, allocations: 39.86 kB / 0.6109 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001468/1.74, allocations: 115.4 kB / 0.611 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01785/1.758, allocations: 8.375 MB / 0.6192 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.758, allocations: 4 kB / 0.6192 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.793e-06/1.758, allocations: 0 / 0.6192 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.075e-06/1.758, allocations: 3.938 kB / 0.6192 GB, free: 6.082 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.003585/1.762, allocations: 1.401 MB / 0.6206 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/1.762, allocations: 8.031 kB / 0.6206 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.041e-05/1.762, allocations: 27.66 kB / 0.6206 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/1.762, allocations: 210.7 kB / 0.6208 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/1.762, allocations: 16.38 kB / 0.6209 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/1.762, allocations: 16 kB / 0.6209 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/1.763, allocations: 262 kB / 0.6211 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/1.763, allocations: 3.938 kB / 0.6211 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/1.763, allocations: 8 kB / 0.6211 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/1.763, allocations: 11.98 kB / 0.6211 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/1.763, allocations: 148.4 kB / 0.6213 GB, free: 3.875 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.02046/1.784, allocations: 9.562 MB / 0.6306 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/1.784, allocations: 78.55 kB / 0.6307 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/1.784, allocations: 60.89 kB / 0.6308 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1627/1.947, allocations: 77.73 MB / 0.7067 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/1.947, allocations: 34.55 kB / 0.7067 GB, free: 2.641 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.144e-06/1.947, allocations: 4 kB / 0.7067 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005194/1.947, allocations: 196.1 kB / 0.7069 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/1.947, allocations: 55.39 kB / 0.7069 GB, free: 2.375 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/1.947, allocations: 236 kB / 0.7072 GB, free: 2.137 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/1.948, allocations: 25.7 kB / 0.7072 GB, free: 2.105 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/1.948, allocations: 140.3 kB / 0.7073 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/1.948, allocations: 70.86 kB / 0.7074 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.45e-05/1.948, allocations: 53.62 kB / 0.7074 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001147/1.948, allocations: 330.8 kB / 0.7077 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/1.948, allocations: 51.97 kB / 0.7078 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/1.948, allocations: 88.27 kB / 0.7079 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/1.948, allocations: 150.4 kB / 0.708 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.948, allocations: 4 kB / 0.708 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003393/1.949, allocations: 200.5 kB / 0.7082 GB, free: 0.9883 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.949, allocations: 9.562 kB / 0.7082 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/1.949, allocations: 0 / 0.7082 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/1.949, allocations: 4 kB / 0.7082 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007015/1.949, allocations: 100 kB / 0.7083 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/1.95, allocations: 7.938 kB / 0.7083 GB, free: 0.8711 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/1.95, allocations: 27.67 kB / 0.7084 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/1.95, allocations: 4 kB / 0.7084 GB, free: 0.8398 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 0.0001059/1.95, allocations: 137.7 kB / 0.7085 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/1.95, allocations: 23.72 kB / 0.7085 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004426/1.95, allocations: 323.7 kB / 0.7088 GB, free: 320 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002388/1.951, allocations: 153.6 kB / 0.709 GB, free: 160 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/1.951, allocations: 7.875 kB / 0.709 GB, free: 152 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/1.951, allocations: 0 / 0.709 GB, free: 152 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.17/2.121, allocations: 0.5971 MB / 0.7096 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/2.121, allocations: 0.5625 kB / 0.7096 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/2.121, allocations: 94.25 kB / 0.7097 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/2.121, allocations: 1.188 kB / 0.7097 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/2.121, allocations: 6.297 kB / 0.7097 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/2.121, allocations: 1.062 kB / 0.7097 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/2.121, allocations: 1.125 kB / 0.7097 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/2.122, allocations: 288.4 kB / 0.7099 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/2.122, allocations: 108.5 kB / 0.71 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/2.122, allocations: 10.81 kB / 0.7101 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/2.122, allocations: 6.797 kB / 0.7101 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.48e-05/2.122, allocations: 11.22 kB / 0.7101 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/2.122, allocations: 3.469 kB / 0.7101 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001611/2.122, allocations: 204.1 kB / 0.7103 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/2.122, allocations: 4.781 kB / 0.7103 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002756/2.125, allocations: 1.176 MB / 0.7114 GB, free: 215.3 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.004229/2.129, allocations: 1.725 MB / 0.7131 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004071/2.129, allocations: 187.7 kB / 0.7133 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/2.129, allocations: 0.8438 kB / 0.7133 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/2.13, allocations: 74 kB / 0.7134 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/2.13, allocations: 98.22 kB / 0.7135 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000601/2.131, allocations: 454 kB / 0.7139 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/2.131, allocations: 0.7534 MB / 0.7146 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.876e-05/2.131, allocations: 30.7 kB / 0.7147 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/2.131, allocations: 24.44 kB / 0.7147 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.3e-07/2.131, allocations: 3.156 kB / 0.7147 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.03925/2.17, allocations: 41.19 MB / 0.7549 GB, free: 193.2 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)