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.5159/0.5159, allocations: 111.6 MB / 131.5 MB, free: 4.91 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.383e-06/1.383e-06, allocations: 0 / 176.6 MB, free: 8.906 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.104e-05/1.242e-05, allocations: 6.25 kB / 176.6 MB, free: 8.898 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.078/1.078, allocations: 262.7 MB / 439.3 MB, free: 15.26 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02975/1.108, allocations: 32.91 MB / 472.2 MB, free: 14.22 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/1.108, allocations: 0 / 472.2 MB, free: 14.22 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.0002978/1.108, allocations: 95.47 kB / 472.3 MB, free: 14.13 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/1.109, allocations: 99.23 kB / 472.4 MB, free: 14.03 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.01981/1.128, allocations: 9.869 MB / 482.3 MB, free: 4.117 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004465/1.129, allocations: 294.5 kB / 482.6 MB, free: 3.828 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/1.129, allocations: 90.47 kB / 482.6 MB, free: 3.742 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/1.129, allocations: 187.4 kB / 482.8 MB, free: 3.559 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.051e-05/1.129, allocations: 63.81 kB / 482.9 MB, free: 3.496 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.006e-05/1.129, allocations: 16 kB / 482.9 MB, free: 3.48 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2117/1.341, allocations: 16.78 MB / 499.7 MB, free: 8.449 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/1.341, allocations: 40.72 kB / 499.7 MB, free: 8.449 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 9.883e-05/1.341, allocations: 70.19 kB / 499.8 MB, free: 8.449 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/1.354, allocations: 10.71 MB / 0.4985 GB, free: 4.434 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/1.354, allocations: 4.656 kB / 0.4985 GB, free: 4.434 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.372e-06/1.354, allocations: 0 / 0.4985 GB, free: 4.434 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/1.354, allocations: 0 / 0.4985 GB, free: 4.434 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.002607/1.356, allocations: 1.333 MB / 0.4998 GB, free: 3.523 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/1.356, allocations: 14.7 kB / 0.4998 GB, free: 3.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/1.356, allocations: 35.97 kB / 0.4999 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/1.356, allocations: 148 kB / 0.5 GB, free: 3.359 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/1.356, allocations: 17.12 kB / 0.5 GB, free: 3.352 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/1.356, allocations: 18.56 kB / 0.5001 GB, free: 3.348 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/1.357, allocations: 207 kB / 0.5003 GB, free: 3.199 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/1.357, allocations: 0 / 0.5003 GB, free: 3.199 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/1.357, allocations: 10.16 kB / 0.5003 GB, free: 3.191 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/1.357, allocations: 9.078 kB / 0.5003 GB, free: 3.188 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.508e-05/1.357, allocations: 67.47 kB / 0.5003 GB, free: 3.176 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.006628/1.363, allocations: 4.924 MB / 0.5051 GB, free: 1.266 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.61e-05/1.363, allocations: 81.34 kB / 0.5052 GB, free: 1.191 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.054e-05/1.363, allocations: 21.48 kB / 0.5052 GB, free: 1.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07038/1.434, allocations: 39.04 MB / 0.5434 GB, free: 10.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/1.434, allocations: 34.55 kB / 0.5434 GB, free: 10.67 MB / 474.7 MB Notification: Performance of pre-optimization done (n=22): time 1.824e-06/1.434, allocations: 0 / 0.5434 GB, free: 10.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002745/1.434, allocations: 89.69 kB / 0.5435 GB, free: 10.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/1.434, allocations: 58.62 kB / 0.5435 GB, free: 10.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/1.434, allocations: 158.5 kB / 0.5437 GB, free: 10.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/1.434, allocations: 29.7 kB / 0.5437 GB, free: 10.32 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/1.434, allocations: 151.9 kB / 0.5439 GB, free: 10.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/1.434, allocations: 78.92 kB / 0.5439 GB, free: 10.11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/1.435, allocations: 40.11 kB / 0.544 GB, free: 10.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/1.435, allocations: 321.5 kB / 0.5443 GB, free: 9.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.897e-05/1.435, allocations: 18.83 kB / 0.5443 GB, free: 9.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.927e-05/1.435, allocations: 67.11 kB / 0.5444 GB, free: 9.656 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/1.435, allocations: 81.14 kB / 0.5445 GB, free: 9.566 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/1.435, allocations: 4 kB / 0.5445 GB, free: 9.562 MB / 474.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000158/1.435, allocations: 115.6 kB / 0.5446 GB, free: 9.449 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/1.435, allocations: 11.12 kB / 0.5446 GB, free: 9.441 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.435, allocations: 4 kB / 0.5446 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/1.435, allocations: 0.7031 kB / 0.5446 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/1.435, allocations: 47.94 kB / 0.5446 GB, free: 9.391 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/1.435, allocations: 4.547 kB / 0.5446 GB, free: 9.387 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.381e-05/1.435, allocations: 23.91 kB / 0.5447 GB, free: 9.363 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/1.435, allocations: 4 kB / 0.5447 GB, free: 9.359 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 (sourcePQ.C.b,sinkQ.C.a,invSingularPressureLoss.C1.a,invSingularPressureLoss.C2.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.573e-05/1.435, allocations: 116 kB / 0.5448 GB, free: 9.242 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/1.436, allocations: 15.92 kB / 0.5448 GB, free: 9.227 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002855/1.436, allocations: 250.9 kB / 0.545 GB, free: 8.977 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.13e-05/1.436, allocations: 93.77 kB / 0.5451 GB, free: 8.883 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/1.436, allocations: 0.875 kB / 0.5451 GB, free: 8.883 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-06/1.436, allocations: 0 / 0.5451 GB, free: 8.883 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005085/1.436, allocations: 423.7 kB / 0.5455 GB, free: 8.469 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.436, allocations: 0 / 0.5455 GB, free: 8.469 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/1.437, allocations: 48.08 kB / 0.5456 GB, free: 8.426 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/1.437, allocations: 4 kB / 0.5456 GB, free: 8.422 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/1.437, allocations: 3.938 kB / 0.5456 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.437, allocations: 0.625 kB / 0.5456 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.437, allocations: 0 / 0.5456 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/1.437, allocations: 256.4 kB / 0.5458 GB, free: 8.156 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/1.437, allocations: 23.75 kB / 0.5458 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/1.437, allocations: 16.58 kB / 0.5459 GB, free: 8.121 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.119e-05/1.437, allocations: 4.562 kB / 0.5459 GB, free: 8.117 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/1.437, allocations: 3.984 kB / 0.5459 GB, free: 8.113 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/1.437, allocations: 11.98 kB / 0.5459 GB, free: 8.102 MB / 474.7 MB Notification: Performance of sorting global known variables: time 5.828e-05/1.437, allocations: 56.64 kB / 0.5459 GB, free: 8.047 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.437, allocations: 0 / 0.5459 GB, free: 8.047 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003228/1.44, allocations: 1.196 MB / 0.5471 GB, free: 6.848 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.004587/1.445, allocations: 2.021 MB / 0.5491 GB, free: 5.062 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001662/1.445, allocations: 128.4 kB / 0.5492 GB, free: 4.934 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.445, allocations: 0 / 0.5492 GB, free: 4.934 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/1.445, allocations: 44.69 kB / 0.5492 GB, free: 4.891 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/1.445, allocations: 86.38 kB / 0.5493 GB, free: 4.812 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007357/1.446, allocations: 441 kB / 0.5497 GB, free: 4.359 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.945e-05/1.446, allocations: 83.97 kB / 0.5498 GB, free: 4.258 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.815e-05/1.446, allocations: 24.75 kB / 0.5498 GB, free: 4.238 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/1.446, allocations: 95.34 kB / 0.5499 GB, free: 4.145 MB / 474.7 MB Notification: Performance of SimCode: time 8.81e-07/1.446, allocations: 0 / 0.5499 GB, free: 4.145 MB / 474.7 MB Notification: Performance of Templates: time 0.04478/1.491, allocations: 47.76 MB / 0.5966 GB, free: 4.629 MB / 0.5105 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: 4.943916468881071]