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.8223/0.8223, allocations: 111.6 MB / 131 MB, free: 5.09 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 1.893e-06/1.893e-06, allocations: 0 / 175.7 MB, free: 9.453 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.95e-05, allocations: 4.938 kB / 175.7 MB, free: 9.449 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.741/1.741, allocations: 254.7 MB / 430.5 MB, free: 492 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.4315/2.172, allocations: 181.2 MB / 0.5973 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/2.172, allocations: 7.938 kB / 0.5973 GB, free: 10.98 MB / 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.000129/2.172, allocations: 43.53 kB / 0.5974 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0003404/2.173, allocations: 130.9 kB / 0.5975 GB, free: 10.81 MB / 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.03042/2.203, allocations: 11.57 MB / 0.6088 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005992/2.204, allocations: 407.5 kB / 0.6092 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/2.204, allocations: 173 kB / 0.6093 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/2.204, allocations: 247.4 kB / 0.6096 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/2.205, allocations: 131.6 kB / 0.6097 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/2.205, allocations: 32 kB / 0.6097 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03697/2.242, allocations: 18.65 MB / 0.6279 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001507/2.242, allocations: 83.69 kB / 0.628 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0002389/2.242, allocations: 127.7 kB / 0.6281 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02709/2.269, allocations: 12.35 MB / 0.6402 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/2.269, allocations: 0 / 0.6402 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.844e-06/2.269, allocations: 0 / 0.6402 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.657e-06/2.269, allocations: 4 kB / 0.6402 GB, free: 14.98 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.004852/2.274, allocations: 1.902 MB / 0.6421 GB, free: 13.03 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/2.274, allocations: 11.98 kB / 0.6421 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/2.274, allocations: 71.77 kB / 0.6421 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/2.275, allocations: 266.7 kB / 0.6424 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/2.275, allocations: 29 kB / 0.6424 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/2.275, allocations: 36 kB / 0.6424 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/2.275, allocations: 389.9 kB / 0.6428 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/2.275, allocations: 0 / 0.6428 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/2.276, allocations: 12 kB / 0.6428 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/2.276, allocations: 8 kB / 0.6428 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/2.276, allocations: 219 kB / 0.643 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08279/2.359, allocations: 22.42 MB / 0.6649 GB, free: 5.441 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/2.359, allocations: 74.91 kB / 0.665 GB, free: 5.359 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.069e-05/2.359, allocations: 25.03 kB / 0.665 GB, free: 5.332 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4944/2.854, allocations: 67.34 MB / 0.7308 GB, free: 105.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/2.854, allocations: 35.02 kB / 0.7308 GB, free: 105.6 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.984e-06/2.854, allocations: 0 / 0.7308 GB, free: 105.6 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0004099/2.854, allocations: 109.1 kB / 0.7309 GB, free: 105.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/2.854, allocations: 51.41 kB / 0.731 GB, free: 105.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/2.854, allocations: 400 kB / 0.7314 GB, free: 105.4 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/2.854, allocations: 25.7 kB / 0.7314 GB, free: 105.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/2.854, allocations: 300.1 kB / 0.7317 GB, free: 105.1 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/2.854, allocations: 25.56 kB / 0.7317 GB, free: 105.1 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/2.855, allocations: 75.53 kB / 0.7318 GB, free: 105.1 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.554e-05/2.855, allocations: 0.5066 MB / 0.7323 GB, free: 104.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/2.855, allocations: 37.34 kB / 0.7323 GB, free: 104.6 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/2.855, allocations: 189.4 kB / 0.7325 GB, free: 104.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/2.855, allocations: 238 kB / 0.7327 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/2.855, allocations: 3.562 kB / 0.7327 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003491/2.855, allocations: 231.4 kB / 0.7329 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/2.855, allocations: 9.359 kB / 0.733 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/2.855, allocations: 1.812 kB / 0.733 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/2.856, allocations: 6.688 kB / 0.733 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/2.856, allocations: 94.89 kB / 0.733 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/2.856, allocations: 8.125 kB / 0.7331 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/2.856, allocations: 23.47 kB / 0.7331 GB, free: 104.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/2.856, allocations: 16.03 kB / 0.7331 GB, free: 104.2 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 0.0001119/2.856, allocations: 193.2 kB / 0.7333 GB, free: 104 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/2.856, allocations: 26.75 kB / 0.7333 GB, free: 104 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002453/2.857, allocations: 115.6 kB / 0.7334 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/2.857, allocations: 0 / 0.7334 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/2.857, allocations: 1.094 kB / 0.7334 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/2.857, allocations: 2.531 kB / 0.7334 GB, free: 103.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.208/3.065, allocations: 66.09 MB / 0.798 GB, free: 64.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/3.065, allocations: 0.625 kB / 0.798 GB, free: 64.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.824e-05/3.065, allocations: 12 kB / 0.798 GB, free: 64.47 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/3.065, allocations: 0 / 0.798 GB, free: 64.47 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/3.065, allocations: 8.172 kB / 0.798 GB, free: 64.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/3.065, allocations: 7.938 kB / 0.798 GB, free: 64.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/3.065, allocations: 1.125 kB / 0.798 GB, free: 64.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/3.065, allocations: 154.9 kB / 0.7981 GB, free: 64.29 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.126e-05/3.065, allocations: 55.77 kB / 0.7982 GB, free: 64.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/3.065, allocations: 3 kB / 0.7982 GB, free: 64.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-05/3.065, allocations: 4.875 kB / 0.7982 GB, free: 64.24 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.305e-05/3.065, allocations: 11.19 kB / 0.7982 GB, free: 64.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/3.065, allocations: 3.984 kB / 0.7982 GB, free: 64.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000159/3.065, allocations: 247.6 kB / 0.7984 GB, free: 64.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/3.065, allocations: 0 / 0.7984 GB, free: 64.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00282/3.068, allocations: 1.466 MB / 0.7999 GB, free: 62.66 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.00494/3.073, allocations: 2.402 MB / 0.8022 GB, free: 60.59 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003542/3.074, allocations: 122.5 kB / 0.8023 GB, free: 60.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/3.074, allocations: 0 / 0.8023 GB, free: 60.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.857e-05/3.074, allocations: 40.52 kB / 0.8024 GB, free: 60.46 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/3.074, allocations: 66.83 kB / 0.8024 GB, free: 60.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006852/3.075, allocations: 0.4934 MB / 0.8029 GB, free: 59.91 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/3.075, allocations: 165.1 kB / 0.8031 GB, free: 59.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001193/3.075, allocations: 47.44 kB / 0.8031 GB, free: 59.68 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/3.075, allocations: 24.5 kB / 0.8032 GB, free: 59.66 MB / 0.6198 GB Notification: Performance of SimCode: time 6.12e-07/3.075, allocations: 0.875 kB / 0.8032 GB, free: 59.66 MB / 0.6198 GB Notification: Performance of Templates: time 0.04734/3.122, allocations: 46.1 MB / 0.8482 GB, free: 13.77 MB / 0.6198 GB " [Timeout remaining time 657] 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: 9.265923099010251]