Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.358/2.358, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.256e-05, allocations: 7.938 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1449, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.4611/0.606, allocations: 65.08 MB / 476 MB, free: 4.367 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0432/0.6493, allocations: 19.1 MB / 495.1 MB, free: 3.43 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003738/0.653, allocations: 111.1 kB / 495.2 MB, free: 3.32 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004021/0.6571, allocations: 0.8783 MB / 496.1 MB, free: 2.438 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.6672, allocations: 2.344 MB / 498.4 MB, free: 88 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01808/0.6853, allocations: 4.84 MB / 0.4915 GB, free: 11.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008321/0.6937, allocations: 3.158 MB / 0.4946 GB, free: 8.078 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00285/0.6966, allocations: 1.26 MB / 0.4958 GB, free: 6.816 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.7308/1.427, allocations: 123 MB / 0.6159 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1155/1.543, allocations: 53.18 MB / 0.6678 GB, free: 83.71 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01863/1.562, allocations: 7.989 MB / 0.6756 GB, free: 76.71 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001911/1.564, allocations: 204 kB / 0.6758 GB, free: 76.51 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001734/1.565, allocations: 0.8454 MB / 0.6767 GB, free: 75.94 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001402/1.567, allocations: 284 kB / 0.6769 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.008308/1.575, allocations: 3.809 MB / 0.6807 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/1.575, allocations: 0 / 0.6807 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.547e-06/1.575, allocations: 4 kB / 0.6807 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001409/1.575, allocations: 0 / 0.6807 GB, free: 72.38 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01067/1.586, allocations: 2.749 MB / 0.6833 GB, free: 69.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/1.586, allocations: 12.03 kB / 0.6834 GB, free: 69.78 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/1.588, allocations: 304.5 kB / 0.6836 GB, free: 69.48 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/1.592, allocations: 1.516 MB / 0.6851 GB, free: 68.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/1.593, allocations: 216 kB / 0.6853 GB, free: 68.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007159/1.593, allocations: 183 kB / 0.6855 GB, free: 68.03 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008313/1.602, allocations: 3.259 MB / 0.6887 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.218e-05/1.602, allocations: 8.984 kB / 0.6887 GB, free: 65.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003687/1.602, allocations: 75.41 kB / 0.6888 GB, free: 65.62 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004596/1.603, allocations: 252.1 kB / 0.689 GB, free: 65.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00874/1.611, allocations: 3.086 MB / 0.692 GB, free: 63.35 MB / 0.5105 GB 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.02995/1.641, allocations: 14 MB / 0.7057 GB, free: 51.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00662/1.648, allocations: 2.252 MB / 0.7079 GB, free: 49.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/1.661, allocations: 5.764 MB / 0.7135 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/1.661, allocations: 52.56 kB / 0.7136 GB, free: 44.41 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001258/1.662, allocations: 232.4 kB / 0.7138 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=159): time 5.841e-06/1.662, allocations: 3.391 kB / 0.7138 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=261): time 1.019/2.681, allocations: 54.9 MB / 0.7674 GB, free: 10.5 MB / 0.5261 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.3749/3.056, allocations: 54.03 MB / 0.8202 GB, free: 8.02 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/3.06, allocations: 1.625 MB / 0.8218 GB, free: 6.359 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007835/3.061, allocations: 69.7 kB / 0.8218 GB, free: 6.285 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001142/3.062, allocations: 1.008 MB / 0.8228 GB, free: 5.277 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001612/3.064, allocations: 0.8794 MB / 0.8237 GB, free: 4.406 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004578/3.064, allocations: 56 kB / 0.8237 GB, free: 4.352 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002914/3.065, allocations: 420.6 kB / 0.8241 GB, free: 3.934 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007683/3.072, allocations: 2.164 MB / 0.8262 GB, free: 1.766 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.374/3.446, allocations: 2.785 MB / 0.829 GB, free: 234.3 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/3.458, allocations: 2.612 MB / 0.8315 GB, free: 234.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.876e-05/3.459, allocations: 8.188 kB / 0.8315 GB, free: 234.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=360) (initialization): time 0.02882/3.487, allocations: 7.369 MB / 0.8387 GB, free: 231.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001639/3.489, allocations: 7.231 MB / 0.8458 GB, free: 224 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.257e-05/3.489, allocations: 18.09 kB / 0.8458 GB, free: 224 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08472/3.574, allocations: 12.04 MB / 0.8575 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/3.576, allocations: 338.9 kB / 0.8579 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02827/3.605, allocations: 8.69 MB / 0.8664 GB, free: 219.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006098/3.611, allocations: 277.1 kB / 0.8666 GB, free: 219.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006616/3.612, allocations: 150.7 kB / 0.8668 GB, free: 219.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/3.612, allocations: 3.781 kB / 0.8668 GB, free: 219.1 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02319/3.635, allocations: 7.056 MB / 0.8737 GB, free: 214.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.299e-05/3.635, allocations: 24.52 kB / 0.8737 GB, free: 214.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04042/3.675, allocations: 7.163 MB / 0.8807 GB, free: 207.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/3.678, allocations: 383.3 kB / 0.881 GB, free: 207.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02603/3.704, allocations: 8.186 MB / 0.889 GB, free: 199.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005274/3.71, allocations: 268 kB / 0.8893 GB, free: 198.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007651/3.711, allocations: 147.9 kB / 0.8894 GB, free: 198.8 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.002479/3.713, allocations: 0.6937 MB / 0.8901 GB, free: 198.1 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000914/3.714, allocations: 246.7 kB / 0.8903 GB, free: 198 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0288/3.743, allocations: 8.074 MB / 0.8982 GB, free: 189.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.132e-05/3.743, allocations: 28 kB / 0.8983 GB, free: 189.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/3.743, allocations: 0 / 0.8983 GB, free: 189.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02498/3.768, allocations: 7.098 MB / 0.9052 GB, free: 182.6 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04328/3.811, allocations: 13.89 MB / 0.9188 GB, free: 168.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.925e-05/3.811, allocations: 0 / 0.9188 GB, free: 168.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/3.813, allocations: 179.9 kB / 0.9189 GB, free: 168.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08079/3.894, allocations: 11.71 MB / 0.9304 GB, free: 156.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007573/3.895, allocations: 79.95 kB / 0.9304 GB, free: 156.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02705/3.922, allocations: 8.422 MB / 0.9387 GB, free: 148.3 MB / 0.573 GB Error: Jacobian StateSetJac8 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.4143/4.336, allocations: 57.86 MB / 0.9952 GB, free: 90.13 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03503/4.371, allocations: 10.58 MB / 1.005 GB, free: 79.43 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003066/4.374, allocations: 0.8345 MB / 1.006 GB, free: 78.59 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001316/4.376, allocations: 55.95 kB / 1.006 GB, free: 78.53 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00561/4.381, allocations: 265.1 kB / 1.007 GB, free: 78.28 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008621/4.382, allocations: 198.1 kB / 1.007 GB, free: 78.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004967/4.383, allocations: 107.9 kB / 1.007 GB, free: 77.98 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002422/4.385, allocations: 1.225 MB / 1.008 GB, free: 76.73 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.81e-07/4.385, allocations: 0 / 1.008 GB, free: 76.73 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01259/4.398, allocations: 2.884 MB / 1.011 GB, free: 74.07 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 78,19 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.01284/4.411, allocations: 2.043 MB / 1.013 GB, free: 72.28 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04285/4.453, allocations: 9.139 MB / 1.022 GB, free: 63.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/4.454, allocations: 0 / 1.022 GB, free: 63.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01646/4.47, allocations: 3.224 MB / 1.025 GB, free: 59.89 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007836/4.478, allocations: 0.9129 MB / 1.026 GB, free: 58.97 MB / 0.573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4485:9-4485:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:742:5-742:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]