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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.4759/0.4759, allocations: 111.6 MB / 131.2 MB, free: 4.484 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.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 176.2 MB, free: 8.855 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.493e-05/1.635e-05, allocations: 2.312 kB / 176.2 MB, free: 8.852 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.006/1.006, allocations: 256.8 MB / 433 MB, free: 188 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02711/1.034, allocations: 33.02 MB / 466.1 MB, free: 15.04 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/1.034, allocations: 4 kB / 466.1 MB, free: 15.04 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourcePQ.mo:16:3-17:78: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 master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80: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 master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:15:3-16:80: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 master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:17:3-18:78: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.0002971/1.034, allocations: 99.41 kB / 466.2 MB, free: 14.94 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/1.034, allocations: 91.33 kB / 466.3 MB, free: 14.85 MB / 426.7 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.01775/1.052, allocations: 9.787 MB / 476 MB, free: 5.016 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/1.052, allocations: 290.5 kB / 476.3 MB, free: 4.73 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/1.052, allocations: 88.47 kB / 476.4 MB, free: 4.641 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/1.053, allocations: 195.3 kB / 476.6 MB, free: 4.449 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.634e-05/1.053, allocations: 67.81 kB / 476.7 MB, free: 4.383 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/1.053, allocations: 16 kB / 476.7 MB, free: 4.367 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2169/1.27, allocations: 16.78 MB / 493.5 MB, free: 9.066 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.887e-05/1.27, allocations: 38.58 kB / 493.5 MB, free: 9.066 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/1.27, allocations: 71.64 kB / 493.6 MB, free: 9.066 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01509/1.285, allocations: 10.71 MB / 0.4925 GB, free: 5.707 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/1.285, allocations: 0 / 0.4925 GB, free: 5.707 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.285, allocations: 0 / 0.4925 GB, free: 5.707 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/1.285, allocations: 0 / 0.4925 GB, free: 5.707 MB / 426.7 MB 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.002812/1.288, allocations: 1.466 MB / 0.4939 GB, free: 4.645 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/1.288, allocations: 14.27 kB / 0.4939 GB, free: 4.641 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.088e-05/1.288, allocations: 38.25 kB / 0.4939 GB, free: 4.621 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/1.288, allocations: 168.2 kB / 0.4941 GB, free: 4.457 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/1.288, allocations: 19.31 kB / 0.4941 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/1.288, allocations: 15.28 kB / 0.4941 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/1.288, allocations: 233.5 kB / 0.4944 GB, free: 4.266 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/1.288, allocations: 1.344 kB / 0.4944 GB, free: 4.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/1.288, allocations: 6.688 kB / 0.4944 GB, free: 4.262 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/1.288, allocations: 12.86 kB / 0.4944 GB, free: 4.254 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/1.288, allocations: 79.84 kB / 0.4945 GB, free: 4.238 MB / 426.7 MB 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.008545/1.297, allocations: 6.063 MB / 0.5004 GB, free: 1.504 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.736e-05/1.297, allocations: 44.12 kB / 0.5004 GB, free: 1.465 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.376e-05/1.297, allocations: 25.12 kB / 0.5004 GB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07084/1.368, allocations: 43.75 MB / 0.5432 GB, free: 6.781 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/1.368, allocations: 33.39 kB / 0.5432 GB, free: 6.738 MB / 474.7 MB Notification: Performance of pre-optimization done (n=22): time 2.044e-06/1.368, allocations: 4 kB / 0.5432 GB, free: 6.734 MB / 474.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003134/1.368, allocations: 129.5 kB / 0.5433 GB, free: 6.602 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.572e-05/1.368, allocations: 55.25 kB / 0.5434 GB, free: 6.539 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/1.368, allocations: 213.8 kB / 0.5436 GB, free: 6.312 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/1.368, allocations: 25.7 kB / 0.5436 GB, free: 6.281 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.599e-05/1.369, allocations: 200.8 kB / 0.5438 GB, free: 6.082 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/1.369, allocations: 74.12 kB / 0.5439 GB, free: 6.012 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/1.369, allocations: 51.34 kB / 0.5439 GB, free: 5.953 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/1.369, allocations: 0.4932 MB / 0.5444 GB, free: 5.449 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/1.369, allocations: 23.98 kB / 0.5444 GB, free: 5.426 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.974e-05/1.369, allocations: 74.42 kB / 0.5445 GB, free: 5.332 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/1.369, allocations: 116.6 kB / 0.5446 GB, free: 5.203 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.369, allocations: 4 kB / 0.5446 GB, free: 5.199 MB / 474.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001583/1.369, allocations: 147.8 kB / 0.5447 GB, free: 5.055 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/1.369, allocations: 4 kB / 0.5447 GB, free: 5.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/1.369, allocations: 3 kB / 0.5448 GB, free: 5.051 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/1.369, allocations: 4 kB / 0.5448 GB, free: 5.047 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/1.369, allocations: 43.94 kB / 0.5448 GB, free: 5.004 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/1.369, allocations: 4 kB / 0.5448 GB, free: 5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.569e-05/1.369, allocations: 15.97 kB / 0.5448 GB, free: 4.984 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/1.369, allocations: 15.94 kB / 0.5448 GB, free: 4.969 MB / 474.7 MB 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 8.399e-05/1.37, allocations: 167.5 kB / 0.545 GB, free: 4.797 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/1.37, allocations: 15.91 kB / 0.545 GB, free: 4.781 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/1.37, allocations: 313.6 kB / 0.5453 GB, free: 4.43 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.098e-05/1.37, allocations: 109.5 kB / 0.5454 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.37, allocations: 4 kB / 0.5454 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/1.37, allocations: 0.875 kB / 0.5454 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004585/1.37, allocations: 0.5329 MB / 0.5459 GB, free: 3.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.37, allocations: 0 / 0.5459 GB, free: 3.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/1.371, allocations: 47.94 kB / 0.546 GB, free: 3.703 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/1.371, allocations: 0.625 kB / 0.546 GB, free: 3.703 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/1.371, allocations: 3.938 kB / 0.546 GB, free: 3.699 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/1.371, allocations: 7.188 kB / 0.546 GB, free: 3.695 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.371, allocations: 0 / 0.546 GB, free: 3.695 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/1.371, allocations: 295.4 kB / 0.5463 GB, free: 3.383 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/1.371, allocations: 24.41 kB / 0.5463 GB, free: 3.359 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/1.371, allocations: 12.02 kB / 0.5463 GB, free: 3.348 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.651e-05/1.371, allocations: 0 / 0.5463 GB, free: 3.348 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-05/1.371, allocations: 11.98 kB / 0.5463 GB, free: 3.336 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/1.371, allocations: 4.938 kB / 0.5463 GB, free: 3.332 MB / 474.7 MB Notification: Performance of sorting global known variables: time 8.445e-05/1.371, allocations: 191 kB / 0.5465 GB, free: 3.148 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/1.371, allocations: 0 / 0.5465 GB, free: 3.148 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002457/1.373, allocations: 1.2 MB / 0.5477 GB, free: 1.945 MB / 474.7 MB 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.003343/1.377, allocations: 1.895 MB / 0.5495 GB, free: 288 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002203/1.377, allocations: 135.8 kB / 0.5497 GB, free: 152 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.377, allocations: 0 / 0.5497 GB, free: 152 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 4.696e-05/1.377, allocations: 55.41 kB / 0.5497 GB, free: 96 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/1.377, allocations: 83.62 kB / 0.5498 GB, free: 20 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007552/1.378, allocations: 437 kB / 0.5502 GB, free: 15.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.886e-05/1.378, allocations: 86.97 kB / 0.5503 GB, free: 15.46 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 5.917e-05/1.378, allocations: 22.92 kB / 0.5503 GB, free: 15.44 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/1.378, allocations: 20.44 kB / 0.5503 GB, free: 15.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.163e-06/1.378, allocations: 4 kB / 0.5503 GB, free: 15.41 MB / 490.7 MB Notification: Performance of Templates: time 0.04521/1.424, allocations: 51.68 MB / 0.6008 GB, free: 11.96 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.515634851064533]