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.4662/0.4662, allocations: 111.6 MB / 131.4 MB, free: 4.957 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.423e-06/1.423e-06, allocations: 0 / 176.5 MB, free: 8.977 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.604e-05, allocations: 2.312 kB / 176.5 MB, free: 8.973 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.119/1.119, allocations: 257.1 MB / 433.6 MB, free: 11.81 MB / 394.9 MB Notification: Performance of NFInst.instExpressions: time 0.3119/1.431, allocations: 178.2 MB / 0.5975 GB, free: 10.23 MB / 0.5106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/1.431, allocations: 11.94 kB / 0.5975 GB, free: 10.22 MB / 0.5106 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.0001188/1.431, allocations: 43.52 kB / 0.5975 GB, free: 10.18 MB / 0.5106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002977/1.432, allocations: 126.9 kB / 0.5977 GB, free: 10.05 MB / 0.5106 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.02177/1.453, allocations: 11.6 MB / 0.609 GB, free: 14.43 MB / 0.5263 GB Notification: Performance of NFFlatten.flatten: time 0.0003079/1.454, allocations: 398.5 kB / 0.6094 GB, free: 14.04 MB / 0.5263 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/1.454, allocations: 173.1 kB / 0.6095 GB, free: 13.86 MB / 0.5263 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/1.454, allocations: 259.3 kB / 0.6098 GB, free: 13.61 MB / 0.5263 GB Notification: Performance of NFSimplifyModel.simplify: time 9.554e-05/1.454, allocations: 115.6 kB / 0.6099 GB, free: 13.5 MB / 0.5263 GB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/1.454, allocations: 32 kB / 0.6099 GB, free: 13.46 MB / 0.5263 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02006/1.474, allocations: 18.66 MB / 0.6281 GB, free: 10.78 MB / 0.5419 GB Notification: Performance of NFScalarize.scalarize: time 7.016e-05/1.474, allocations: 79.7 kB / 0.6282 GB, free: 10.7 MB / 0.5419 GB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/1.474, allocations: 133.8 kB / 0.6283 GB, free: 10.57 MB / 0.5419 GB Notification: Performance of NFConvertDAE.convert: time 0.01473/1.489, allocations: 12.2 MB / 0.6402 GB, free: 14.34 MB / 0.5575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.489, allocations: 0 / 0.6402 GB, free: 14.34 MB / 0.5575 GB Notification: Performance of FrontEnd: time 1.282e-06/1.489, allocations: 0 / 0.6402 GB, free: 14.34 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 4.068e-06/1.489, allocations: 4 kB / 0.6403 GB, free: 14.34 MB / 0.5575 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.002423/1.492, allocations: 1.879 MB / 0.6421 GB, free: 12.41 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/1.492, allocations: 15.97 kB / 0.6421 GB, free: 12.4 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/1.492, allocations: 71.77 kB / 0.6422 GB, free: 12.33 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/1.492, allocations: 270.8 kB / 0.6424 GB, free: 12.04 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/1.492, allocations: 25 kB / 0.6425 GB, free: 12.01 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/1.492, allocations: 36 kB / 0.6425 GB, free: 11.98 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/1.492, allocations: 298.5 kB / 0.6428 GB, free: 11.65 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/1.492, allocations: 7.984 kB / 0.6428 GB, free: 11.64 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/1.492, allocations: 12 kB / 0.6428 GB, free: 11.63 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.443e-06/1.492, allocations: 12 kB / 0.6428 GB, free: 11.62 MB / 0.5575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/1.492, allocations: 122.9 kB / 0.6429 GB, free: 11.5 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03038/1.523, allocations: 19.49 MB / 0.662 GB, free: 7.941 MB / 0.5731 GB Notification: Performance of preOpt comSubExp (simulation): time 8.092e-05/1.523, allocations: 56.81 kB / 0.662 GB, free: 7.875 MB / 0.5731 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/1.523, allocations: 15.62 kB / 0.662 GB, free: 7.855 MB / 0.5731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2839/1.807, allocations: 58.87 MB / 0.7195 GB, free: 105 MB / 0.62 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/1.807, allocations: 35.86 kB / 0.7195 GB, free: 105 MB / 0.62 GB Notification: Performance of pre-optimization done (n=5): time 1.382e-06/1.807, allocations: 0 / 0.7195 GB, free: 105 MB / 0.62 GB Notification: Performance of matching and sorting (n=5): time 0.0001899/1.807, allocations: 82.34 kB / 0.7196 GB, free: 104.9 MB / 0.62 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.23e-05/1.807, allocations: 52.62 kB / 0.7197 GB, free: 104.9 MB / 0.62 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/1.807, allocations: 344.3 kB / 0.72 GB, free: 104.7 MB / 0.62 GB Notification: Performance of collectPreVariables (initialization): time 5.641e-06/1.807, allocations: 27.52 kB / 0.72 GB, free: 104.7 MB / 0.62 GB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/1.807, allocations: 289.2 kB / 0.7203 GB, free: 104.5 MB / 0.62 GB Notification: Performance of collectInitialBindings (initialization): time 9.538e-06/1.807, allocations: 18.67 kB / 0.7203 GB, free: 104.5 MB / 0.62 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/1.807, allocations: 69.58 kB / 0.7204 GB, free: 104.5 MB / 0.62 GB Notification: Performance of setup shared object (initialization): time 4.346e-05/1.807, allocations: 0.5038 MB / 0.7209 GB, free: 104 MB / 0.62 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.16e-05/1.807, allocations: 17.14 kB / 0.7209 GB, free: 104 MB / 0.62 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-05/1.808, allocations: 164.8 kB / 0.7211 GB, free: 103.8 MB / 0.62 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/1.808, allocations: 203.6 kB / 0.7212 GB, free: 103.6 MB / 0.62 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/1.808, allocations: 0.75 kB / 0.7212 GB, free: 103.6 MB / 0.62 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001782/1.808, allocations: 188.5 kB / 0.7214 GB, free: 103.5 MB / 0.62 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.808, allocations: 6.344 kB / 0.7214 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/1.808, allocations: 6.391 kB / 0.7214 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/1.808, allocations: 5.031 kB / 0.7214 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/1.808, allocations: 67.56 kB / 0.7215 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/1.808, allocations: 8.156 kB / 0.7215 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.226e-05/1.808, allocations: 28.25 kB / 0.7215 GB, free: 103.5 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/1.808, allocations: 14.69 kB / 0.7216 GB, free: 103.5 MB / 0.62 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 6.851e-05/1.808, allocations: 169.8 kB / 0.7217 GB, free: 103.4 MB / 0.62 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/1.808, allocations: 23.52 kB / 0.7217 GB, free: 103.4 MB / 0.62 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/1.808, allocations: 102 kB / 0.7218 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/1.808, allocations: 0 / 0.7218 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/1.808, allocations: 1.906 kB / 0.7218 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/1.808, allocations: 1.094 kB / 0.7218 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08752/1.896, allocations: 57.51 MB / 0.778 GB, free: 81.71 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.896, allocations: 0 / 0.778 GB, free: 81.71 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-05/1.896, allocations: 12.92 kB / 0.778 GB, free: 81.7 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/1.896, allocations: 0 / 0.778 GB, free: 81.7 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/1.896, allocations: 4 kB / 0.778 GB, free: 81.7 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/1.896, allocations: 7.312 kB / 0.778 GB, free: 81.7 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.896, allocations: 8.297 kB / 0.778 GB, free: 81.69 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.469e-05/1.896, allocations: 142.7 kB / 0.7782 GB, free: 81.52 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/1.896, allocations: 33.47 kB / 0.7782 GB, free: 81.5 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/1.896, allocations: 4 kB / 0.7782 GB, free: 81.49 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.668e-05/1.896, allocations: 3.125 kB / 0.7782 GB, free: 81.49 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/1.896, allocations: 11.08 kB / 0.7782 GB, free: 81.48 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/1.896, allocations: 0 / 0.7782 GB, free: 81.48 MB / 0.62 GB Notification: Performance of sorting global known variables: time 6.737e-05/1.896, allocations: 211.5 kB / 0.7784 GB, free: 81.3 MB / 0.62 GB Notification: Performance of sort global known variables: time 7e-08/1.896, allocations: 4 kB / 0.7784 GB, free: 81.29 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.001992/1.898, allocations: 1.466 MB / 0.7799 GB, free: 80 MB / 0.62 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.003241/1.901, allocations: 2.516 MB / 0.7823 GB, free: 77.8 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.0001396/1.902, allocations: 83.09 kB / 0.7824 GB, free: 77.73 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.902, allocations: 0 / 0.7824 GB, free: 77.73 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 1.807e-05/1.902, allocations: 27.05 kB / 0.7824 GB, free: 77.71 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/1.902, allocations: 60.36 kB / 0.7825 GB, free: 77.66 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006795/1.903, allocations: 0.4924 MB / 0.783 GB, free: 77.16 MB / 0.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.4e-05/1.903, allocations: 88.3 kB / 0.783 GB, free: 77.05 MB / 0.62 GB Notification: Performance of simCode: alias equations: time 8.14e-05/1.903, allocations: 38.08 kB / 0.7831 GB, free: 77.02 MB / 0.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.042e-05/1.903, allocations: 118.2 kB / 0.7832 GB, free: 76.9 MB / 0.62 GB Notification: Performance of SimCode: time 9.92e-07/1.903, allocations: 0 / 0.7832 GB, free: 76.9 MB / 0.62 GB Notification: Performance of Templates: time 0.03754/1.94, allocations: 54.1 MB / 0.836 GB, free: 22.99 MB / 0.62 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.514406170230359]