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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.49/0.49, allocations: 111.6 MB / 131.5 MB, free: 4.914 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.005e-06/3.005e-06, allocations: 0 / 176.6 MB, free: 8.941 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.884e-05, allocations: 5.047 kB / 176.6 MB, free: 8.938 MB / 170.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.076/1.076, allocations: 262.9 MB / 439.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.338/1.414, allocations: 180.9 MB / 0.6059 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002196/1.414, allocations: 7.938 kB / 0.6059 GB, free: 14.95 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:44:3-45:78: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 master/Fluid/BoundaryConditions/SinkP.mo:32:3-33:80: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 master/Fluid/PressureLosses/InvSingularPressureLoss.mo:22:3-23:80: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 master/Fluid/PressureLosses/InvSingularPressureLoss.mo:24:3-25:78: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.0001144/1.415, allocations: 43.52 kB / 0.6059 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0002695/1.415, allocations: 122.9 kB / 0.606 GB, free: 14.79 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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 master/Properties/WaterSteam/IF97_packages.mo:525:9-525: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 master/Properties/WaterSteam/IF97_packages.mo:708:9-708: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88: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.02401/1.439, allocations: 11.7 MB / 0.6175 GB, free: 3.062 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004876/1.439, allocations: 402.5 kB / 0.6178 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/1.44, allocations: 175.7 kB / 0.618 GB, free: 2.496 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/1.44, allocations: 255.4 kB / 0.6183 GB, free: 2.246 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/1.44, allocations: 119.6 kB / 0.6184 GB, free: 2.129 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/1.44, allocations: 32 kB / 0.6184 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02946/1.47, allocations: 18.64 MB / 0.6366 GB, free: 15.43 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001213/1.47, allocations: 91.67 kB / 0.6367 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001721/1.47, allocations: 123.7 kB / 0.6368 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02243/1.492, allocations: 12.21 MB / 0.6487 GB, free: 2.98 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/1.492, allocations: 4 kB / 0.6487 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.443e-06/1.492, allocations: 0 / 0.6487 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.991e-06/1.492, allocations: 0 / 0.6487 GB, free: 2.977 MB / 0.5573 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.003301/1.496, allocations: 1.739 MB / 0.6504 GB, free: 1.203 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/1.496, allocations: 15.98 kB / 0.6504 GB, free: 1.188 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.506e-05/1.496, allocations: 52.83 kB / 0.6505 GB, free: 1.137 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/1.496, allocations: 244 kB / 0.6507 GB, free: 0.8711 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/1.496, allocations: 25 kB / 0.6508 GB, free: 0.8477 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/1.496, allocations: 32 kB / 0.6508 GB, free: 0.8164 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/1.496, allocations: 293.5 kB / 0.6511 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.496, allocations: 0 / 0.6511 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/1.496, allocations: 12 kB / 0.6511 GB, free: 496 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/1.496, allocations: 8 kB / 0.6511 GB, free: 488 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/1.496, allocations: 115 kB / 0.6512 GB, free: 376 kB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03288/1.529, allocations: 19.61 MB / 0.6703 GB, free: 12.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 8.791e-05/1.529, allocations: 30.56 kB / 0.6704 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.717e-05/1.529, allocations: 13.73 kB / 0.6704 GB, free: 12.64 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3146/1.844, allocations: 60.8 MB / 0.7298 GB, free: 94.72 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/1.844, allocations: 38.59 kB / 0.7298 GB, free: 94.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.923e-06/1.844, allocations: 0 / 0.7298 GB, free: 94.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0001872/1.844, allocations: 60.02 kB / 0.7299 GB, free: 94.65 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/1.844, allocations: 51.41 kB / 0.7299 GB, free: 94.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/1.844, allocations: 277.3 kB / 0.7302 GB, free: 94.48 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.592e-06/1.844, allocations: 25.7 kB / 0.7302 GB, free: 94.45 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.83e-05/1.845, allocations: 234.2 kB / 0.7304 GB, free: 94.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.036e-05/1.845, allocations: 27.17 kB / 0.7304 GB, free: 94.33 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/1.845, allocations: 59.31 kB / 0.7305 GB, free: 94.31 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.719e-05/1.845, allocations: 332.4 kB / 0.7308 GB, free: 94 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.917e-05/1.845, allocations: 17.83 kB / 0.7308 GB, free: 94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.893e-05/1.845, allocations: 118 kB / 0.7309 GB, free: 93.87 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/1.845, allocations: 161.2 kB / 0.7311 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.845, allocations: 0 / 0.7311 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001428/1.845, allocations: 154.8 kB / 0.7312 GB, free: 93.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/1.845, allocations: 10.12 kB / 0.7313 GB, free: 93.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/1.845, allocations: 6.938 kB / 0.7313 GB, free: 93.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/1.845, allocations: 3.375 kB / 0.7313 GB, free: 93.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/1.845, allocations: 68.42 kB / 0.7313 GB, free: 93.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/1.845, allocations: 6.25 kB / 0.7313 GB, free: 93.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.9e-05/1.845, allocations: 27.72 kB / 0.7314 GB, free: 93.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/1.845, allocations: 7.562 kB / 0.7314 GB, free: 93.7 MB / 0.6198 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 (invSingularPressureLoss.C2.diff_on_1,sourcePQ.C.diff_on_2,sourcePQ.fluid1,invSingularPressureLoss.fluid,sinkQ.fluid,sourcePQ.C.ftype) * 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 8.058e-05/1.845, allocations: 127 kB / 0.7315 GB, free: 93.58 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/1.845, allocations: 19.62 kB / 0.7315 GB, free: 93.58 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/1.846, allocations: 87.34 kB / 0.7316 GB, free: 93.53 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/1.846, allocations: 5.156 kB / 0.7316 GB, free: 93.53 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/1.846, allocations: 0 / 0.7316 GB, free: 93.53 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/1.846, allocations: 0.5625 kB / 0.7316 GB, free: 93.53 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09023/1.936, allocations: 58.79 MB / 0.789 GB, free: 61.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/1.936, allocations: 0 / 0.789 GB, free: 61.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.527e-05/1.936, allocations: 8.625 kB / 0.789 GB, free: 61.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/1.936, allocations: 0 / 0.789 GB, free: 61.85 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/1.936, allocations: 7.984 kB / 0.789 GB, free: 61.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/1.936, allocations: 4.391 kB / 0.789 GB, free: 61.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.936, allocations: 1.125 kB / 0.789 GB, free: 61.84 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.842e-05/1.936, allocations: 98.25 kB / 0.7891 GB, free: 61.73 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/1.936, allocations: 34.61 kB / 0.7892 GB, free: 61.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/1.936, allocations: 9.25 kB / 0.7892 GB, free: 61.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.477e-05/1.936, allocations: 0 / 0.7892 GB, free: 61.69 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.917e-05/1.936, allocations: 13.55 kB / 0.7892 GB, free: 61.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/1.936, allocations: 0.75 kB / 0.7892 GB, free: 61.68 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.686e-05/1.936, allocations: 96.14 kB / 0.7893 GB, free: 61.61 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/1.936, allocations: 0 / 0.7893 GB, free: 61.61 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002517/1.939, allocations: 1.466 MB / 0.7907 GB, free: 60.24 MB / 0.6198 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.004276/1.943, allocations: 2.554 MB / 0.7932 GB, free: 58.02 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002622/1.943, allocations: 82.22 kB / 0.7933 GB, free: 57.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/1.943, allocations: 4 kB / 0.7933 GB, free: 57.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.614e-05/1.943, allocations: 19.75 kB / 0.7933 GB, free: 57.94 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/1.943, allocations: 68.97 kB / 0.7934 GB, free: 57.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008086/1.944, allocations: 0.4892 MB / 0.7938 GB, free: 57.39 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.382e-05/1.944, allocations: 88.3 kB / 0.7939 GB, free: 57.29 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.555e-05/1.944, allocations: 38.89 kB / 0.794 GB, free: 57.24 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.788e-05/1.945, allocations: 94.16 kB / 0.7941 GB, free: 57.15 MB / 0.6198 GB Notification: Performance of SimCode: time 1.012e-06/1.945, allocations: 1.094 kB / 0.7941 GB, free: 57.15 MB / 0.6198 GB Notification: Performance of Templates: time 0.04035/1.985, allocations: 53.32 MB / 0.8461 GB, free: 4.039 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.838730968069285]