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.4753/0.4753, allocations: 111.6 MB / 131.7 MB, free: 5.062 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.323e-06/1.323e-06, allocations: 0 / 176.5 MB, free: 9.426 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.354e-05, allocations: 7.719 kB / 176.5 MB, free: 9.422 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.035/1.035, allocations: 256.8 MB / 433.3 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03201/1.067, allocations: 32.91 MB / 466.2 MB, free: 15.56 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/1.067, allocations: 0 / 466.2 MB, free: 15.56 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.0003046/1.068, allocations: 99.41 kB / 466.3 MB, free: 15.46 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/1.068, allocations: 91.27 kB / 466.4 MB, free: 15.38 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.01866/1.086, allocations: 9.779 MB / 476.2 MB, free: 5.559 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/1.087, allocations: 294.5 kB / 476.5 MB, free: 5.27 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/1.087, allocations: 88.52 kB / 476.5 MB, free: 5.18 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/1.087, allocations: 179.5 kB / 476.7 MB, free: 5.004 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.556e-05/1.087, allocations: 71.81 kB / 476.8 MB, free: 4.934 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/1.087, allocations: 16 kB / 476.8 MB, free: 4.918 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02157/1.109, allocations: 16.8 MB / 493.6 MB, free: 4.094 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 3.997e-05/1.109, allocations: 35.84 kB / 493.6 MB, free: 4.059 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/1.109, allocations: 75.83 kB / 493.7 MB, free: 3.984 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1781/1.287, allocations: 10.69 MB / 0.4926 GB, free: 20.44 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/1.287, allocations: 0.6562 kB / 0.4926 GB, free: 20.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.193e-06/1.287, allocations: 0 / 0.4926 GB, free: 20.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/1.287, allocations: 0 / 0.4926 GB, free: 20.44 MB / 442.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.005042/1.292, allocations: 1.467 MB / 0.494 GB, free: 19.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.292, allocations: 14.3 kB / 0.494 GB, free: 19.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.257e-05/1.292, allocations: 43.19 kB / 0.4941 GB, free: 19.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/1.292, allocations: 170.3 kB / 0.4942 GB, free: 19.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/1.292, allocations: 13.03 kB / 0.4942 GB, free: 19.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/1.292, allocations: 21.03 kB / 0.4943 GB, free: 19.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002754/1.293, allocations: 230.5 kB / 0.4945 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/1.293, allocations: 1.094 kB / 0.4945 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/1.293, allocations: 6.656 kB / 0.4945 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/1.293, allocations: 14.64 kB / 0.4945 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/1.293, allocations: 81.61 kB / 0.4946 GB, free: 19.24 MB / 442.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.009885/1.303, allocations: 6.07 MB / 0.5005 GB, free: 18.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.822e-05/1.303, allocations: 44.03 kB / 0.5005 GB, free: 18.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.119e-05/1.303, allocations: 27.69 kB / 0.5006 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07393/1.377, allocations: 43.74 MB / 0.5433 GB, free: 4.621 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/1.377, allocations: 37.39 kB / 0.5433 GB, free: 4.574 MB / 458.7 MB Notification: Performance of pre-optimization done (n=22): time 1.914e-06/1.377, allocations: 0 / 0.5433 GB, free: 4.574 MB / 458.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003192/1.377, allocations: 128.4 kB / 0.5435 GB, free: 4.453 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/1.377, allocations: 51.41 kB / 0.5435 GB, free: 4.391 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/1.377, allocations: 220.1 kB / 0.5437 GB, free: 4.176 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/1.377, allocations: 29.7 kB / 0.5437 GB, free: 4.141 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.166e-05/1.377, allocations: 197.2 kB / 0.5439 GB, free: 3.957 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/1.377, allocations: 78.2 kB / 0.544 GB, free: 3.891 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/1.378, allocations: 42.55 kB / 0.544 GB, free: 3.852 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/1.378, allocations: 0.4991 MB / 0.5445 GB, free: 3.348 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.843e-05/1.378, allocations: 19.98 kB / 0.5445 GB, free: 3.328 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.498e-05/1.378, allocations: 82.09 kB / 0.5446 GB, free: 3.234 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/1.378, allocations: 118 kB / 0.5447 GB, free: 3.121 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.378, allocations: 6.297 kB / 0.5447 GB, free: 3.117 MB / 458.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001678/1.378, allocations: 152.7 kB / 0.5449 GB, free: 2.984 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/1.378, allocations: 4 kB / 0.5449 GB, free: 2.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/1.378, allocations: 4 kB / 0.5449 GB, free: 2.977 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/1.378, allocations: 0 / 0.5449 GB, free: 2.977 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/1.378, allocations: 72.84 kB / 0.545 GB, free: 2.906 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.378, allocations: 3.656 kB / 0.545 GB, free: 2.906 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/1.378, allocations: 23.47 kB / 0.545 GB, free: 2.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/1.378, allocations: 4 kB / 0.545 GB, free: 2.883 MB / 458.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 9.241e-05/1.379, allocations: 168.4 kB / 0.5452 GB, free: 2.711 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.169e-05/1.379, allocations: 11.91 kB / 0.5452 GB, free: 2.699 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/1.379, allocations: 313.6 kB / 0.5455 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.932e-05/1.379, allocations: 106.6 kB / 0.5456 GB, free: 2.301 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/1.379, allocations: 0 / 0.5456 GB, free: 2.301 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/1.379, allocations: 4.75 kB / 0.5456 GB, free: 2.297 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004996/1.38, allocations: 0.5343 MB / 0.5461 GB, free: 1.793 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/1.38, allocations: 2.953 kB / 0.5461 GB, free: 1.793 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/1.38, allocations: 66.92 kB / 0.5462 GB, free: 1.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/1.38, allocations: 8.031 kB / 0.5462 GB, free: 1.723 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/1.38, allocations: 8.375 kB / 0.5462 GB, free: 1.719 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/1.38, allocations: 0 / 0.5462 GB, free: 1.719 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/1.38, allocations: 0 / 0.5462 GB, free: 1.719 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/1.38, allocations: 293.6 kB / 0.5465 GB, free: 1.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/1.38, allocations: 27.58 kB / 0.5465 GB, free: 1.406 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/1.38, allocations: 12.06 kB / 0.5465 GB, free: 1.398 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-05/1.38, allocations: 7.984 kB / 0.5465 GB, free: 1.391 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/1.38, allocations: 11.05 kB / 0.5465 GB, free: 1.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/1.38, allocations: 0 / 0.5465 GB, free: 1.383 MB / 458.7 MB Notification: Performance of sorting global known variables: time 8.887e-05/1.38, allocations: 190.6 kB / 0.5467 GB, free: 1.207 MB / 458.7 MB Notification: Performance of sort global known variables: time 6e-08/1.38, allocations: 4 kB / 0.5467 GB, free: 1.203 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003656/1.384, allocations: 1.195 MB / 0.5479 GB, free: 84 kB / 458.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.004273/1.388, allocations: 1.892 MB / 0.5497 GB, free: 14.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002429/1.388, allocations: 133.1 kB / 0.5498 GB, free: 14.35 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/1.388, allocations: 0 / 0.5498 GB, free: 14.35 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 4.756e-05/1.388, allocations: 50.17 kB / 0.5499 GB, free: 14.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/1.389, allocations: 88.73 kB / 0.55 GB, free: 14.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008533/1.39, allocations: 447.8 kB / 0.5504 GB, free: 13.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.1e-05/1.39, allocations: 83.97 kB / 0.5505 GB, free: 13.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.264e-05/1.39, allocations: 17.75 kB / 0.5505 GB, free: 13.69 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.223e-05/1.39, allocations: 20.5 kB / 0.5505 GB, free: 13.66 MB / 474.7 MB Notification: Performance of SimCode: time 9.42e-07/1.39, allocations: 0 / 0.5505 GB, free: 13.66 MB / 474.7 MB Notification: Performance of Templates: time 0.03966/1.429, allocations: 41.87 MB / 0.5914 GB, free: 4.031 MB / 0.4948 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.717567429877818]