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.5022/0.5022, allocations: 111.6 MB / 131.2 MB, free: 5.047 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 2.264e-06/2.264e-06, allocations: 0 / 176.2 MB, free: 9.188 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.38e-05, allocations: 5.047 kB / 176.2 MB, free: 9.184 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.068/1.068, allocations: 257.1 MB / 433.3 MB, free: 8 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.317/1.385, allocations: 181.6 MB / 0.6005 GB, free: 368 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/1.385, allocations: 15.88 kB / 0.6005 GB, free: 352 kB / 0.5105 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.0001102/1.385, allocations: 35.59 kB / 0.6005 GB, free: 316 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002623/1.385, allocations: 122.9 kB / 0.6006 GB, free: 192 kB / 0.5105 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.02001/1.405, allocations: 11.6 MB / 0.612 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0003752/1.406, allocations: 402.5 kB / 0.6123 GB, free: 4.168 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/1.406, allocations: 169.1 kB / 0.6125 GB, free: 4 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002685/1.406, allocations: 251.4 kB / 0.6127 GB, free: 3.754 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/1.406, allocations: 127.6 kB / 0.6129 GB, free: 3.629 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/1.406, allocations: 32 kB / 0.6129 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.023/1.429, allocations: 18.65 MB / 0.6311 GB, free: 0.9219 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 9.534e-05/1.429, allocations: 87.67 kB / 0.6312 GB, free: 0.8359 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001356/1.43, allocations: 127.7 kB / 0.6313 GB, free: 0.7109 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01633/1.446, allocations: 12.21 MB / 0.6432 GB, free: 4.473 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/1.446, allocations: 8 kB / 0.6432 GB, free: 4.465 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.924e-06/1.446, allocations: 0 / 0.6432 GB, free: 4.465 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.703e-06/1.446, allocations: 3.938 kB / 0.6432 GB, free: 4.461 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.003465/1.449, allocations: 1.867 MB / 0.6451 GB, free: 2.547 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/1.449, allocations: 11.98 kB / 0.6451 GB, free: 2.535 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/1.45, allocations: 75.75 kB / 0.6452 GB, free: 2.461 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/1.45, allocations: 267.6 kB / 0.6454 GB, free: 2.172 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/1.45, allocations: 21 kB / 0.6454 GB, free: 2.152 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/1.45, allocations: 36 kB / 0.6455 GB, free: 2.117 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/1.45, allocations: 322.6 kB / 0.6458 GB, free: 1.766 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/1.45, allocations: 0 / 0.6458 GB, free: 1.766 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/1.45, allocations: 16 kB / 0.6458 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/1.45, allocations: 8 kB / 0.6458 GB, free: 1.742 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002119/1.451, allocations: 147.6 kB / 0.6459 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03793/1.488, allocations: 22.31 MB / 0.6677 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/1.489, allocations: 59.03 kB / 0.6678 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.819e-05/1.489, allocations: 19.66 kB / 0.6678 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3238/1.812, allocations: 67.34 MB / 0.7336 GB, free: 95.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/1.813, allocations: 37.17 kB / 0.7336 GB, free: 95.4 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.244e-06/1.813, allocations: 0 / 0.7336 GB, free: 95.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0002606/1.813, allocations: 83.95 kB / 0.7337 GB, free: 95.37 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.718e-05/1.813, allocations: 55.3 kB / 0.7337 GB, free: 95.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/1.813, allocations: 344.4 kB / 0.7341 GB, free: 95.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.703e-06/1.813, allocations: 25.7 kB / 0.7341 GB, free: 95.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.938e-05/1.813, allocations: 291.3 kB / 0.7344 GB, free: 94.94 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.125e-05/1.813, allocations: 19.78 kB / 0.7344 GB, free: 94.93 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/1.813, allocations: 74.73 kB / 0.7344 GB, free: 94.9 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.647e-05/1.813, allocations: 0.4944 MB / 0.7349 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.527e-05/1.813, allocations: 25.33 kB / 0.735 GB, free: 94.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.543e-05/1.813, allocations: 171.5 kB / 0.7351 GB, free: 94.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/1.813, allocations: 202 kB / 0.7353 GB, free: 94.03 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/1.813, allocations: 2.656 kB / 0.7353 GB, free: 94.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001962/1.814, allocations: 195.4 kB / 0.7355 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/1.814, allocations: 9.125 kB / 0.7355 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/1.814, allocations: 3.406 kB / 0.7355 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/1.814, allocations: 3.062 kB / 0.7355 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/1.814, allocations: 95.86 kB / 0.7356 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/1.814, allocations: 9.531 kB / 0.7356 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.275e-05/1.814, allocations: 28.58 kB / 0.7356 GB, free: 93.97 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/1.814, allocations: 10.44 kB / 0.7357 GB, free: 93.97 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 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * 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 7.434e-05/1.814, allocations: 177.5 kB / 0.7358 GB, free: 93.81 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/1.814, allocations: 21.2 kB / 0.7358 GB, free: 93.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/1.814, allocations: 102.1 kB / 0.7359 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.814, allocations: 7.031 kB / 0.7359 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.814, allocations: 0 / 0.7359 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/1.814, allocations: 1.031 kB / 0.7359 GB, free: 93.74 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1011/1.915, allocations: 66.01 MB / 0.8004 GB, free: 49.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.915, allocations: 8.125 kB / 0.8004 GB, free: 49.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.355e-05/1.915, allocations: 18.55 kB / 0.8004 GB, free: 49.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/1.915, allocations: 3.375 kB / 0.8004 GB, free: 49.28 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/1.915, allocations: 5.25 kB / 0.8004 GB, free: 49.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/1.915, allocations: 0 / 0.8004 GB, free: 49.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.915, allocations: 0 / 0.8004 GB, free: 49.28 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/1.916, allocations: 147.2 kB / 0.8006 GB, free: 49.11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.083e-05/1.916, allocations: 38.97 kB / 0.8006 GB, free: 49.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/1.916, allocations: 5.203 kB / 0.8006 GB, free: 49.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.144e-05/1.916, allocations: 3.984 kB / 0.8006 GB, free: 49.07 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.527e-05/1.916, allocations: 15.38 kB / 0.8006 GB, free: 49.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/1.916, allocations: 4 kB / 0.8006 GB, free: 49.06 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001041/1.916, allocations: 217 kB / 0.8009 GB, free: 48.87 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.1e-08/1.916, allocations: 0 / 0.8009 GB, free: 48.87 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00219/1.918, allocations: 1.468 MB / 0.8023 GB, free: 47.5 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.003506/1.922, allocations: 2.411 MB / 0.8046 GB, free: 45.42 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001961/1.922, allocations: 85.42 kB / 0.8047 GB, free: 45.35 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.922, allocations: 0 / 0.8047 GB, free: 45.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.146e-05/1.922, allocations: 22.47 kB / 0.8047 GB, free: 45.33 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/1.922, allocations: 67.83 kB / 0.8048 GB, free: 45.28 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008392/1.923, allocations: 0.4926 MB / 0.8053 GB, free: 44.77 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.593e-05/1.923, allocations: 88.3 kB / 0.8054 GB, free: 44.66 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.257e-05/1.923, allocations: 39.95 kB / 0.8054 GB, free: 44.62 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/1.923, allocations: 34 kB / 0.8054 GB, free: 44.59 MB / 0.6198 GB Notification: Performance of SimCode: time 8.52e-07/1.923, allocations: 0 / 0.8054 GB, free: 44.59 MB / 0.6198 GB Notification: Performance of Templates: time 0.03138/1.954, allocations: 46.1 MB / 0.8505 GB, free: 14.71 MB / 0.6355 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.639321594964713]