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.7943/0.7943, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002531/0.0002531, allocations: 11.98 kB / 204.7 MB, free: 6.137 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1514, allocations: 31.33 MB / 236 MB, free: 3.852 MB / 186.7 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.563/1.715, allocations: 291.8 MB / 0.5154 GB, free: 10.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0427/1.757, allocations: 37.5 MB / 0.552 GB, free: 4.801 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/1.758, allocations: 4 kB / 0.5521 GB, free: 4.797 MB / 442.7 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.0003383/1.758, allocations: 75.61 kB / 0.5521 GB, free: 4.723 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/1.758, allocations: 71.45 kB / 0.5522 GB, free: 4.652 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01989/1.778, allocations: 7.15 MB / 0.5592 GB, free: 13.5 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003775/1.778, allocations: 266.7 kB / 0.5594 GB, free: 13.24 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/1.779, allocations: 100.6 kB / 0.5595 GB, free: 13.15 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/1.779, allocations: 103.5 kB / 0.5596 GB, free: 13.05 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/1.779, allocations: 95.5 kB / 0.5597 GB, free: 12.95 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/1.779, allocations: 16 kB / 0.5597 GB, free: 12.94 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02875/1.808, allocations: 17.73 MB / 0.577 GB, free: 11.19 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 7.005e-05/1.808, allocations: 35.86 kB / 0.5771 GB, free: 11.15 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/1.808, allocations: 111.4 kB / 0.5772 GB, free: 11.04 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01978/1.828, allocations: 8.379 MB / 0.5854 GB, free: 2.645 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.828, allocations: 0 / 0.5854 GB, free: 2.645 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.643e-06/1.828, allocations: 0 / 0.5854 GB, free: 2.645 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/1.828, allocations: 0 / 0.5854 GB, free: 2.645 MB / 474.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.003901/1.832, allocations: 1.405 MB / 0.5867 GB, free: 1.188 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/1.832, allocations: 8.031 kB / 0.5867 GB, free: 1.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/1.832, allocations: 27.66 kB / 0.5868 GB, free: 1.152 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/1.832, allocations: 218.6 kB / 0.587 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/1.832, allocations: 16.38 kB / 0.587 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/1.832, allocations: 16 kB / 0.587 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/1.833, allocations: 260.1 kB / 0.5873 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/1.833, allocations: 0 / 0.5873 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/1.833, allocations: 8 kB / 0.5873 GB, free: 0.582 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/1.833, allocations: 15.98 kB / 0.5873 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/1.833, allocations: 145 kB / 0.5874 GB, free: 436 kB / 474.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.01948/1.852, allocations: 9.502 MB / 0.5967 GB, free: 5.945 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/1.853, allocations: 78.5 kB / 0.5968 GB, free: 5.859 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.921e-05/1.853, allocations: 60.88 kB / 0.5968 GB, free: 5.797 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.155/2.008, allocations: 77.27 MB / 0.6723 GB, free: 15.76 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/2.008, allocations: 34.56 kB / 0.6723 GB, free: 15.72 MB / 0.573 GB Notification: Performance of pre-optimization done (n=22): time 3.427e-06/2.008, allocations: 0 / 0.6723 GB, free: 15.72 MB / 0.573 GB Notification: Performance of matching and sorting (n=22): time 0.0005251/2.008, allocations: 214.7 kB / 0.6725 GB, free: 15.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/2.008, allocations: 51.41 kB / 0.6726 GB, free: 15.44 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/2.009, allocations: 228.8 kB / 0.6728 GB, free: 15.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/2.009, allocations: 25.7 kB / 0.6728 GB, free: 15.17 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 8.152e-05/2.009, allocations: 140.2 kB / 0.6729 GB, free: 15.03 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/2.009, allocations: 74.84 kB / 0.673 GB, free: 14.96 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.486e-05/2.009, allocations: 33.7 kB / 0.6731 GB, free: 14.92 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001055/2.009, allocations: 342.8 kB / 0.6734 GB, free: 14.57 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/2.009, allocations: 43.98 kB / 0.6734 GB, free: 14.53 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/2.009, allocations: 89.27 kB / 0.6735 GB, free: 14.43 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/2.009, allocations: 164.1 kB / 0.6737 GB, free: 14.25 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/2.009, allocations: 0 / 0.6737 GB, free: 14.25 MB / 0.573 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003076/2.01, allocations: 195.1 kB / 0.6738 GB, free: 14.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/2.01, allocations: 8 kB / 0.6739 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/2.01, allocations: 0 / 0.6739 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/2.01, allocations: 0 / 0.6739 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/2.01, allocations: 100 kB / 0.674 GB, free: 13.95 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/2.01, allocations: 80 / 0.674 GB, free: 13.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/2.011, allocations: 39.59 kB / 0.674 GB, free: 13.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/2.011, allocations: 7.984 kB / 0.674 GB, free: 13.91 MB / 0.573 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.0001105/2.011, allocations: 143.6 kB / 0.6741 GB, free: 13.76 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/2.011, allocations: 19.72 kB / 0.6742 GB, free: 13.74 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004369/2.011, allocations: 324.8 kB / 0.6745 GB, free: 13.39 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002238/2.011, allocations: 151.1 kB / 0.6746 GB, free: 13.23 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/2.011, allocations: 7.938 kB / 0.6746 GB, free: 13.23 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/2.011, allocations: 3.984 kB / 0.6746 GB, free: 13.22 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007445/2.012, allocations: 0.5963 MB / 0.6752 GB, free: 12.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/2.012, allocations: 8.031 kB / 0.6752 GB, free: 12.56 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/2.013, allocations: 91.88 kB / 0.6753 GB, free: 12.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/2.013, allocations: 3.984 kB / 0.6753 GB, free: 12.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/2.013, allocations: 4 kB / 0.6753 GB, free: 12.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/2.013, allocations: 8.031 kB / 0.6753 GB, free: 12.45 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/2.013, allocations: 0 / 0.6753 GB, free: 12.45 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009245/2.014, allocations: 0.984 MB / 0.6763 GB, free: 11.41 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.031e-05/2.014, allocations: 104.8 kB / 0.6764 GB, free: 11.29 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/2.014, allocations: 11.94 kB / 0.6764 GB, free: 11.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/2.014, allocations: 11.84 kB / 0.6764 GB, free: 11.27 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.508e-05/2.014, allocations: 7.984 kB / 0.6764 GB, free: 11.26 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/2.014, allocations: 4 kB / 0.6764 GB, free: 11.25 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0001849/2.014, allocations: 210 kB / 0.6766 GB, free: 11.05 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/2.014, allocations: 0 / 0.6766 GB, free: 11.05 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003104/2.017, allocations: 1.206 MB / 0.6778 GB, free: 9.84 MB / 0.573 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.005144/2.023, allocations: 1.792 MB / 0.6795 GB, free: 8.039 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0004867/2.023, allocations: 198.3 kB / 0.6797 GB, free: 7.84 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/2.023, allocations: 0 / 0.6797 GB, free: 7.84 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/2.023, allocations: 67.91 kB / 0.6798 GB, free: 7.773 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006984/2.024, allocations: 98.45 kB / 0.6799 GB, free: 7.68 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000879/2.025, allocations: 0.6982 MB / 0.6806 GB, free: 6.941 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/2.025, allocations: 0.7635 MB / 0.6813 GB, free: 6.152 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001133/2.025, allocations: 22.11 kB / 0.6813 GB, free: 6.129 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/2.025, allocations: 23.44 kB / 0.6814 GB, free: 6.109 MB / 0.573 GB Notification: Performance of SimCode: time 2.41e-07/2.025, allocations: 0 / 0.6814 GB, free: 6.109 MB / 0.573 GB Notification: Performance of Templates: time 0.2287/2.254, allocations: 41.4 MB / 0.7218 GB, free: 208.9 MB / 0.573 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)