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 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7985/0.7985, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004111, allocations: 15.97 kB / 204 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1616, allocations: 31.32 MB / 235.4 MB, free: 5.48 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.603/1.764, allocations: 292.5 MB / 0.5154 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.06262/1.827, allocations: 37.51 MB / 0.5521 GB, free: 8.715 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/1.827, allocations: 4 kB / 0.5521 GB, free: 8.711 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47: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 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:26:3-28:16: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 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:29:3-30:83: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.000343/1.827, allocations: 76.67 kB / 0.5522 GB, free: 8.637 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001589/1.828, allocations: 67.52 kB / 0.5522 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0191/1.847, allocations: 7.161 MB / 0.5592 GB, free: 1.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/1.847, allocations: 258.8 kB / 0.5595 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/1.847, allocations: 109.1 kB / 0.5596 GB, free: 1.051 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/1.848, allocations: 103.5 kB / 0.5597 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/1.848, allocations: 99.5 kB / 0.5598 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/1.848, allocations: 8 kB / 0.5598 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02832/1.876, allocations: 17.73 MB / 0.5771 GB, free: 15.09 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.809e-05/1.876, allocations: 35.84 kB / 0.5771 GB, free: 15.06 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/1.876, allocations: 111.4 kB / 0.5772 GB, free: 14.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01628/1.893, allocations: 8.375 MB / 0.5854 GB, free: 6.555 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/1.893, allocations: 4 kB / 0.5854 GB, free: 6.551 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.585e-06/1.893, allocations: 0 / 0.5854 GB, free: 6.551 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/1.893, allocations: 3.938 kB / 0.5854 GB, free: 6.547 MB / 478.1 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.003625/1.896, allocations: 1.396 MB / 0.5868 GB, free: 5.098 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/1.896, allocations: 8.031 kB / 0.5868 GB, free: 5.09 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.4e-05/1.896, allocations: 27.66 kB / 0.5868 GB, free: 5.062 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/1.897, allocations: 218.6 kB / 0.587 GB, free: 4.809 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/1.897, allocations: 16.38 kB / 0.587 GB, free: 4.793 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/1.897, allocations: 16 kB / 0.587 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004113/1.897, allocations: 256.2 kB / 0.5873 GB, free: 4.508 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/1.897, allocations: 3.938 kB / 0.5873 GB, free: 4.504 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/1.897, allocations: 12 kB / 0.5873 GB, free: 4.492 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/1.897, allocations: 11.98 kB / 0.5873 GB, free: 4.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/1.897, allocations: 149 kB / 0.5874 GB, free: 4.336 MB / 478.1 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.01844/1.916, allocations: 9.492 MB / 0.5967 GB, free: 9.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/1.916, allocations: 86.56 kB / 0.5968 GB, free: 9.777 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.839e-05/1.916, allocations: 56.88 kB / 0.5969 GB, free: 9.719 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.143/2.059, allocations: 77.27 MB / 0.6723 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/2.059, allocations: 34.56 kB / 0.6723 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/2.059, allocations: 3.938 kB / 0.6724 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005171/2.06, allocations: 207.2 kB / 0.6725 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.487e-05/2.06, allocations: 51.41 kB / 0.6726 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/2.06, allocations: 228.8 kB / 0.6728 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/2.06, allocations: 25.7 kB / 0.6728 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.866e-05/2.06, allocations: 140.2 kB / 0.673 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.002e-05/2.06, allocations: 70.84 kB / 0.673 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.203e-05/2.06, allocations: 45.58 kB / 0.6731 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001137/2.06, allocations: 338.8 kB / 0.6734 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/2.061, allocations: 47.98 kB / 0.6735 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/2.061, allocations: 92.77 kB / 0.6735 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/2.061, allocations: 160.1 kB / 0.6737 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/2.061, allocations: 4 kB / 0.6737 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003338/2.061, allocations: 191.1 kB / 0.6739 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/2.061, allocations: 4 kB / 0.6739 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/2.061, allocations: 4 kB / 0.6739 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/2.061, allocations: 4.125 kB / 0.6739 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006464/2.062, allocations: 95.88 kB / 0.674 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/2.062, allocations: 0 / 0.674 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/2.062, allocations: 27.59 kB / 0.674 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/2.062, allocations: 12 kB / 0.674 GB, free: 1.824 MB / 0.5606 GB 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 0.0001052/2.062, allocations: 139.6 kB / 0.6742 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.099e-05/2.062, allocations: 23.72 kB / 0.6742 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004423/2.063, allocations: 319.7 kB / 0.6745 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002324/2.063, allocations: 155.8 kB / 0.6746 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/2.063, allocations: 3.938 kB / 0.6746 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/2.063, allocations: 3.984 kB / 0.6746 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007776/2.064, allocations: 0.608 MB / 0.6752 GB, free: 488 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/2.064, allocations: 3.938 kB / 0.6752 GB, free: 484 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/2.064, allocations: 91.88 kB / 0.6753 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/2.064, allocations: 4 kB / 0.6753 GB, free: 388 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/2.064, allocations: 4.031 kB / 0.6753 GB, free: 384 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/2.064, allocations: 4 kB / 0.6753 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.064, allocations: 4 kB / 0.6753 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/2.065, allocations: 282 kB / 0.6756 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.613e-05/2.065, allocations: 104.8 kB / 0.6757 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/2.065, allocations: 13.58 kB / 0.6757 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/2.065, allocations: 11.98 kB / 0.6757 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/2.065, allocations: 7.938 kB / 0.6757 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/2.065, allocations: 11.98 kB / 0.6758 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001856/2.065, allocations: 202 kB / 0.6759 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/2.065, allocations: 0 / 0.6759 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002685/2.068, allocations: 1.175 MB / 0.6771 GB, free: 14.54 MB / 0.5762 GB 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.00522/2.073, allocations: 1.79 MB / 0.6788 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004375/2.074, allocations: 189.5 kB / 0.679 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/2.074, allocations: 256 / 0.679 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/2.074, allocations: 75.91 kB / 0.6791 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006548/2.075, allocations: 104.4 kB / 0.6792 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007631/2.075, allocations: 0.5217 MB / 0.6797 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/2.076, allocations: 0.7596 MB / 0.6804 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001175/2.076, allocations: 21.95 kB / 0.6805 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.983e-05/2.076, allocations: 31.42 kB / 0.6805 GB, free: 11 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/2.076, allocations: 0 / 0.6805 GB, free: 11 MB / 0.5762 GB Notification: Performance of Templates: time 0.1884/2.264, allocations: 41.28 MB / 0.7208 GB, free: 215.7 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)