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.8454/0.8454, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003067, allocations: 13.59 kB / 237.1 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05557/0.05589, allocations: 31.34 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.594/1.65, allocations: 294.6 MB / 0.5498 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03965/1.69, allocations: 34.38 MB / 0.5834 GB, free: 10.91 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/1.69, allocations: 4 kB / 0.5834 GB, free: 10.9 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.0004483/1.69, allocations: 99.38 kB / 0.5835 GB, free: 10.8 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/1.69, allocations: 75.38 kB / 0.5836 GB, free: 10.73 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.02453/1.715, allocations: 9.567 MB / 0.5929 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/1.715, allocations: 274.7 kB / 0.5932 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/1.716, allocations: 112.2 kB / 0.5933 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/1.716, allocations: 123.5 kB / 0.5934 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/1.716, allocations: 95.5 kB / 0.5935 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/1.716, allocations: 20 kB / 0.5935 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02964/1.746, allocations: 17.88 MB / 0.611 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/1.746, allocations: 39.86 kB / 0.611 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001366/1.746, allocations: 111.4 kB / 0.6111 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0166/1.762, allocations: 8.388 MB / 0.6193 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/1.763, allocations: 4 kB / 0.6193 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.482e-06/1.763, allocations: 0 / 0.6193 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.272e-06/1.763, allocations: 0 / 0.6193 GB, free: 6.066 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.003589/1.766, allocations: 1.452 MB / 0.6208 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/1.766, allocations: 8.031 kB / 0.6208 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/1.766, allocations: 27.8 kB / 0.6208 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/1.766, allocations: 218.7 kB / 0.621 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/1.766, allocations: 12.38 kB / 0.621 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/1.767, allocations: 20 kB / 0.621 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004145/1.767, allocations: 266 kB / 0.6213 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/1.767, allocations: 0 / 0.6213 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/1.767, allocations: 4 kB / 0.6213 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/1.767, allocations: 12 kB / 0.6213 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002874/1.767, allocations: 152.4 kB / 0.6214 GB, free: 3.793 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.01979/1.787, allocations: 9.55 MB / 0.6308 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/1.787, allocations: 82.48 kB / 0.6309 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/1.787, allocations: 60.89 kB / 0.6309 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1592/1.947, allocations: 77.74 MB / 0.7068 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/1.947, allocations: 34.56 kB / 0.7069 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.304e-06/1.947, allocations: 0 / 0.7069 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.000555/1.947, allocations: 203.8 kB / 0.7071 GB, free: 2.352 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/1.947, allocations: 51.41 kB / 0.7071 GB, free: 2.289 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/1.948, allocations: 244 kB / 0.7073 GB, free: 2.043 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/1.948, allocations: 25.7 kB / 0.7074 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/1.948, allocations: 136.4 kB / 0.7075 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.977e-05/1.948, allocations: 75.36 kB / 0.7076 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.729e-05/1.948, allocations: 41.7 kB / 0.7076 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.948, allocations: 338.8 kB / 0.7079 GB, free: 1.414 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/1.948, allocations: 47.98 kB / 0.708 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/1.948, allocations: 92.25 kB / 0.7081 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/1.948, allocations: 150.3 kB / 0.7082 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.949, allocations: 4 kB / 0.7082 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003611/1.949, allocations: 212.6 kB / 0.7084 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/1.949, allocations: 8 kB / 0.7084 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/1.949, allocations: 0 / 0.7084 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/1.949, allocations: 4 kB / 0.7084 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007027/1.95, allocations: 100 kB / 0.7085 GB, free: 0.7773 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/1.95, allocations: 7.938 kB / 0.7085 GB, free: 0.7695 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/1.95, allocations: 27.73 kB / 0.7085 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/1.95, allocations: 7.938 kB / 0.7086 GB, free: 0.7344 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.000129/1.95, allocations: 141.7 kB / 0.7087 GB, free: 0.5859 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/1.95, allocations: 23.86 kB / 0.7087 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/1.95, allocations: 319.9 kB / 0.709 GB, free: 212 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000248/1.951, allocations: 153 kB / 0.7092 GB, free: 56 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/1.951, allocations: 3.938 kB / 0.7092 GB, free: 52 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.951, allocations: 3.984 kB / 0.7092 GB, free: 48 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1783/2.129, allocations: 0.6029 MB / 0.7098 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/2.129, allocations: 1.125 kB / 0.7098 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/2.13, allocations: 93.02 kB / 0.7098 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/2.13, allocations: 1.25 kB / 0.7099 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/2.13, allocations: 2.172 kB / 0.7099 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/2.13, allocations: 5.031 kB / 0.7099 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/2.13, allocations: 1.844 kB / 0.7099 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/2.13, allocations: 284 kB / 0.7101 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.989e-05/2.13, allocations: 109.7 kB / 0.7102 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/2.13, allocations: 13.56 kB / 0.7102 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/2.13, allocations: 12.95 kB / 0.7103 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/2.13, allocations: 7.812 kB / 0.7103 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/2.13, allocations: 2.469 kB / 0.7103 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002011/2.131, allocations: 206.1 kB / 0.7105 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.131, allocations: 0 / 0.7105 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003239/2.134, allocations: 1.184 MB / 0.7116 GB, free: 215.2 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.005804/2.14, allocations: 1.735 MB / 0.7133 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005732/2.14, allocations: 189.1 kB / 0.7135 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/2.14, allocations: 0 / 0.7135 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/2.141, allocations: 83.52 kB / 0.7136 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.0006695/2.141, allocations: 90.31 kB / 0.7137 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007738/2.142, allocations: 464.4 kB / 0.7141 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/2.142, allocations: 0.7565 MB / 0.7148 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001224/2.142, allocations: 27.2 kB / 0.7149 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/2.142, allocations: 27.56 kB / 0.7149 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of SimCode: time 3.4e-07/2.142, allocations: 0 / 0.7149 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.04586/2.188, allocations: 41.2 MB / 0.7551 GB, free: 193.1 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)