Running command: translateModel(Modelica.Fluid.Examples.BranchingDynamicPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.flowModel.m_flows.1.|pipe1.flowModel.m_flows.2.|pipe1.flowModel.m_flows.3.|pipe1.flowModel.m_flows.4.|pipe1.flowModel.m_flows.5.|pipe1.flowModel.m_flows.6.|pipe1.mediums.1..T|pipe1.mediums.1..Xi.1.|pipe1.mediums.1..p|pipe1.mediums.2..T|pipe1.mediums.2..Xi.1.|pipe1.mediums.2..p|pipe1.mediums.3..T|pipe1.mediums.3..Xi.1.|pipe1.mediums.3..p|pipe1.mediums.4..T|pipe1.mediums.4..Xi.1.|pipe1.mediums.4..p|pipe1.mediums.5..T|pipe1.mediums.5..Xi.1.|pipe1.mediums.5..p|pipe2.flowModel.m_flows.1.|pipe2.flowModel.m_flows.2.|pipe2.flowModel.m_flows.3.|pipe2.flowModel.m_flows.4.|pipe2.mediums.1..T|pipe2.mediums.1..Xi.1.|pipe2.mediums.1..p|pipe2.mediums.2..T|pipe2.mediums.2..Xi.1.|pipe2.mediums.2..p|pipe2.mediums.3..T|pipe2.mediums.3..Xi.1.|pipe2.mediums.3..p|pipe2.mediums.4..T|pipe2.mediums.4..Xi.1.|pipe2.mediums.4..p|pipe2.mediums.5..T|pipe2.mediums.5..Xi.1.|pipe2.mediums.5..p|pipe3.flowModel.m_flows.1.|pipe3.flowModel.m_flows.2.|pipe3.flowModel.m_flows.3.|pipe3.flowModel.m_flows.4.|pipe3.flowModel.m_flows.5.|pipe3.flowModel.m_flows.6.|pipe3.mediums.1..T|pipe3.mediums.1..Xi.1.|pipe3.mediums.1..p|pipe3.mediums.2..T|pipe3.mediums.2..Xi.1.|pipe3.mediums.2..p|pipe3.mediums.3..T|pipe3.mediums.3..Xi.1.|pipe3.mediums.3..p|pipe3.mediums.4..T|pipe3.mediums.4..Xi.1.|pipe3.mediums.4..p|pipe3.mediums.5..T|pipe3.mediums.5..Xi.1.|pipe3.mediums.5..p|pipe4.flowModel.m_flows.1.|pipe4.flowModel.m_flows.2.|pipe4.flowModel.m_flows.3.|pipe4.flowModel.m_flows.4.|pipe4.flowModel.m_flows.5.|pipe4.flowModel.m_flows.6.|pipe4.mediums.1..T|pipe4.mediums.1..Xi.1.|pipe4.mediums.1..p|pipe4.mediums.2..T|pipe4.mediums.2..Xi.1.|pipe4.mediums.2..p|pipe4.mediums.3..T|pipe4.mediums.3..Xi.1.|pipe4.mediums.3..p|pipe4.mediums.4..T|pipe4.mediums.4..Xi.1.|pipe4.mediums.4..p|pipe4.mediums.5..T|pipe4.mediums.5..Xi.1.|pipe4.mediums.5..p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes") Notification: Performance of loadModel(Modelica): time 2.291/2.291, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.781e-05/3.773e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.BranchingDynamicPipes): time 0.6641/0.7816, allocations: 208.3 MB / 0.5403 GB, free: 10.04 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.04823/0.8299, allocations: 21.13 MB / 0.5609 GB, free: 4.863 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003318/0.8333, allocations: 115.2 kB / 0.5611 GB, free: 4.75 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004341/0.8376, allocations: 1.003 MB / 0.562 GB, free: 3.742 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.4611/1.299, allocations: 3.963 MB / 0.5659 GB, free: 4.191 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0263/1.325, allocations: 5.659 MB / 0.5714 GB, free: 4.117 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.01543/1.341, allocations: 7.019 MB / 0.5783 GB, free: 4.086 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007345/1.348, allocations: 3.076 MB / 0.5813 GB, free: 4.066 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01321/1.361, allocations: 4.299 MB / 0.5855 GB, free: 4.055 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0133/1.375, allocations: 4.534 MB / 0.5899 GB, free: 4.035 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02966/1.404, allocations: 10.06 MB / 0.5997 GB, free: 3.18 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006956/1.411, allocations: 0.6221 MB / 0.6004 GB, free: 3.18 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007978/1.419, allocations: 3.479 MB / 0.6037 GB, free: 2.172 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006867/1.426, allocations: 0.8901 MB / 0.6046 GB, free: 2.168 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02883/1.455, allocations: 12.99 MB / 0.6173 GB, free: 11.94 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.455, allocations: 0 / 0.6173 GB, free: 11.94 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.516e-06/1.455, allocations: 4 kB / 0.6173 GB, free: 11.94 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004818/1.456, allocations: 0 / 0.6173 GB, free: 11.94 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: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.06207/1.518, allocations: 9.622 MB / 0.6267 GB, free: 4.309 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.518, allocations: 8.594 kB / 0.6267 GB, free: 4.301 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008043/1.526, allocations: 0.8411 MB / 0.6275 GB, free: 3.453 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/1.543, allocations: 4.247 MB / 0.6317 GB, free: 396 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009198/1.544, allocations: 480.3 kB / 0.6321 GB, free: 124 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004775/1.548, allocations: 0.6502 MB / 0.6328 GB, free: 15.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05048/1.599, allocations: 14.44 MB / 0.6469 GB, free: 5.777 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006193/1.6, allocations: 32.89 kB / 0.6469 GB, free: 5.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004327/1.604, allocations: 251.2 kB / 0.6471 GB, free: 5.695 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002908/1.607, allocations: 1.287 MB / 0.6484 GB, free: 4.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05659/1.663, allocations: 16.99 MB / 0.665 GB, free: 8.961 MB / 0.4948 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.1563/1.82, allocations: 54.66 MB / 0.7184 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03568/1.856, allocations: 11.39 MB / 0.7295 GB, free: 2.965 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006161/1.862, allocations: 4.124 MB / 0.7335 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/1.862, allocations: 149.3 kB / 0.7337 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008222/1.87, allocations: 0.8091 MB / 0.7345 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=925): time 3.855e-05/1.87, allocations: 0 / 0.7345 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1187): time 0.994/2.864, allocations: 103.3 MB / 0.8353 GB, free: 241.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/2.865, allocations: 176.7 kB / 0.8355 GB, free: 241 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008363/2.873, allocations: 3.42 MB / 0.8388 GB, free: 237.6 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.004256/2.877, allocations: 241.7 kB / 0.839 GB, free: 237.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001984/2.879, allocations: 2.158 MB / 0.8411 GB, free: 235.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.007486/2.887, allocations: 4.122 MB / 0.8452 GB, free: 231.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004098/2.891, allocations: 232 kB / 0.8454 GB, free: 230.9 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001187/2.892, allocations: 0.7859 MB / 0.8461 GB, free: 230.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03685/2.929, allocations: 10.62 MB / 0.8565 GB, free: 219.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03921/2.968, allocations: 12.04 MB / 0.8683 GB, free: 207.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04016/3.009, allocations: 11.71 MB / 0.8797 GB, free: 195.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.935e-05/3.009, allocations: 12 kB / 0.8797 GB, free: 195.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1456) (initialization): time 0.1316/3.14, allocations: 33.91 MB / 0.9128 GB, free: 161.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002451/3.143, allocations: 10.75 MB / 0.9233 GB, free: 149.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/3.143, allocations: 32 kB / 0.9234 GB, free: 149.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5062/3.649, allocations: 84.65 MB / 1.006 GB, free: 65.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00933/3.659, allocations: 1.104 MB / 1.007 GB, free: 63.93 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1366/3.795, allocations: 37.19 MB / 1.043 GB, free: 26.63 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02645/3.822, allocations: 1.856 MB / 1.045 GB, free: 24.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004749/3.827, allocations: 0.5778 MB / 1.046 GB, free: 24.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/3.827, allocations: 4 kB / 1.046 GB, free: 24.19 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4785/4.305, allocations: 32.71 MB / 1.078 GB, free: 256.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002072/4.305, allocations: 26.75 kB / 1.078 GB, free: 256.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4296/4.735, allocations: 64.15 MB / 1.14 GB, free: 212 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009879/4.745, allocations: 1.158 MB / 1.142 GB, free: 210.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1221/4.867, allocations: 35.26 MB / 1.176 GB, free: 175.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02375/4.891, allocations: 1.817 MB / 1.178 GB, free: 173.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004869/4.896, allocations: 0.5622 MB / 1.178 GB, free: 173.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (619): * Single equations (assignments): 618 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {76 762} Notification: Performance of prepare postOptimizeDAE: time 0.01287/4.909, allocations: 2.537 MB / 1.181 GB, free: 170.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005526/4.914, allocations: 0.6612 MB / 1.181 GB, free: 170.5 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1178/5.032, allocations: 31.89 MB / 1.213 GB, free: 138.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001699/5.033, allocations: 124 kB / 1.213 GB, free: 138.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.874e-05/5.033, allocations: 0 / 1.213 GB, free: 138.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.092/5.125, allocations: 24.61 MB / 1.237 GB, free: 113.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1515/5.276, allocations: 43.71 MB / 1.279 GB, free: 70.13 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001715/5.276, allocations: 0 / 1.279 GB, free: 70.13 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0352/5.312, allocations: 3.398 MB / 1.283 GB, free: 66.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07375/5.385, allocations: 12.19 MB / 1.295 GB, free: 54.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004563/5.39, allocations: 0.6244 MB / 1.295 GB, free: 53.84 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07108/5.461, allocations: 44.88 MB / 1.339 GB, free: 7.305 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/5.461, allocations: 4.031 kB / 1.339 GB, free: 7.301 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4744/5.936, allocations: 38.26 MB / 1.376 GB, free: 249.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003042/5.939, allocations: 0.8146 MB / 1.377 GB, free: 249.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006468/5.945, allocations: 484.3 kB / 1.378 GB, free: 248.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02393/5.969, allocations: 1.489 MB / 1.379 GB, free: 248.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004874/5.974, allocations: 0.8002 MB / 1.38 GB, free: 248.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004653/5.979, allocations: 0.5459 MB / 1.38 GB, free: 248.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006839/5.986, allocations: 2.614 MB / 1.383 GB, free: 247.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.31e-07/5.986, allocations: 1.5 kB / 1.383 GB, free: 247.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.03312/6.019, allocations: 6.65 MB / 1.39 GB, free: 246.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1168): * Single equations (assignments): 1121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01401/6.033, allocations: 2.59 MB / 1.392 GB, free: 246.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.1517/6.185, allocations: 39.11 MB / 1.43 GB, free: 212.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-05/6.185, allocations: 9 kB / 1.43 GB, free: 212.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.05706/6.242, allocations: 14.27 MB / 1.444 GB, free: 198.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02887/6.271, allocations: 3.175 MB / 1.447 GB, free: 195.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/6.38, allocations: 36.29 MB / 1.483 GB, free: 158.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/6.39, allocations: 5.286 MB / 1.488 GB, free: 153.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009192/6.399, allocations: 0.8116 MB / 1.489 GB, free: 152.8 MB / 0.573 GB Notification: Performance of SimCode: time 1.463e-06/6.399, allocations: 0 / 1.489 GB, free: 152.8 MB / 0.573 GB Notification: Performance of Templates: time 2.354/8.753, allocations: 0.8088 GB / 2.297 GB, free: 72.16 MB / 0.573 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.cpp:26: In file included from ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgLoopMain.cpp:153: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1910:27: error: use of undeclared identifier 'pipe1_P_Medium_P_nXi_' int tmp2121_num_elems =(pipe1_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1914:3: error: statement requires expression of integer type ('DynArrayDim1' invalid) switch (/*t2*/tmp2121) { /* ASUB */ ^ ~~~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1921:66: error: use of undeclared identifier '_Closure11_f__nonlinear' }_functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure11_f__nonlinear(_functions, /*box double*/__z[35], /*box double*/division(((max((-_system->_pipe2_P_m_flows_(1)),1e-07) * _system->_pipe2_P_mediums1_P_h_) + (max((-__z[40]),1e-07) * _system->_pipe3_P_mediums1_P_h_)),(max((-_system->_pipe2_P_m_flows_(1)),1e-07) + max((-__z[40]),1e-07)),!_system->_initial,"max(-pipe2.m_flows[1], 1e-07) + max(-pipe3.flowModel.m_flows[1], 1e-07)"), /*box BaseArray*//*t1*/tmp2120), 190.0, 647.0, 1e-13, tmp2122); ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1932:27: error: use of undeclared identifier 'pipe3_P_Medium_P_nXi_' int tmp2130_num_elems =(pipe3_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1936:3: error: statement requires expression of integer type ('DynArrayDim1' invalid) switch (/*t2*/tmp2130) { /* ASUB */ ^ ~~~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:1943:66: error: use of undeclared identifier '_Closure12_f__nonlinear' }_functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure12_f__nonlinear(_functions, /*box double*/__z[35], /*box double*/division(((max((-_system->_pipe2_P_m_flows_(1)),1e-07) * _system->_pipe2_P_mediums1_P_h_) + (max(__z[5],1e-07) * _system->_pipe1_P_mediums5_P_h_)),(max((-_system->_pipe2_P_m_flows_(1)),1e-07) + max(__z[5],1e-07)),!_system->_initial,"max(-pipe2.m_flows[1], 1e-07) + max(pipe1.flowModel.m_flows[6], 1e-07)"), /*box BaseArray*//*t1*/tmp2129), 190.0, 647.0, 1e-13, tmp2131); ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2103:27: error: use of undeclared identifier 'pipe3_P_Medium_P_nXi_' int tmp2194_num_elems =(pipe3_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2107:3: error: statement requires expression of integer type ('DynArrayDim1' invalid) switch (/*t2*/tmp2194) { /* ASUB */ ^ ~~~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2114:66: error: use of undeclared identifier '_Closure13_f__nonlinear' }_functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure13_f__nonlinear(_functions, /*box double*/__z[39], /*box double*/division(((max(_system->_pipe2_P_m_flows_(6),1e-07) * _system->_pipe2_P_mediums5_P_h_) + (max((-__z[61]),1e-07) * _system->_pipe4_P_mediums1_P_h_)),(max(_system->_pipe2_P_m_flows_(6),1e-07) + max((-__z[61]),1e-07)),!_system->_initial,"max(pipe2.m_flows[6], 1e-07) + max(-pipe4.flowModel.m_flows[1], 1e-07)"), /*box BaseArray*//*t1*/tmp2193), 190.0, 647.0, 1e-13, tmp2195); ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2125:27: error: use of undeclared identifier 'pipe4_P_Medium_P_nXi_' int tmp2203_num_elems =(pipe4_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2129:3: error: statement requires expression of integer type ('DynArrayDim1' invalid) switch (/*t2*/tmp2203) { /* ASUB */ ^ ~~~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesAlgloop1079.cpp:2136:66: error: use of undeclared identifier '_Closure14_f__nonlinear' }_functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure14_f__nonlinear(_functions, /*box double*/__z[39], /*box double*/division(((max(_system->_pipe2_P_m_flows_(6),1e-07) * _system->_pipe2_P_mediums5_P_h_) + (max(__z[45],1e-07) * _system->_pipe3_P_mediums5_P_h_)),(max(_system->_pipe2_P_m_flows_(6),1e-07) + max(__z[45],1e-07)),!_system->_initial,"max(pipe2.m_flows[6], 1e-07) + max(pipe3.flowModel.m_flows[6], 1e-07)"), /*box BaseArray*//*t1*/tmp2202), 190.0, 647.0, 1e-13, tmp2204); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.cpp:30: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:1630:28: error: use of undeclared identifier 'pipe1_P_Medium_P_nXi_' int tmp24_num_elems =(pipe1_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:1634:28: error: use of undeclared identifier 'pipe1_P_Medium_P_nXi_' int tmp25_num_elems =(pipe1_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:1638:214: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure0_f__nonlinear(_functions, /*box double*/_boundary1_P_p_, /*box double*/_boundary1_P_ports1_P_h_outflow_, /*box BaseArray*//*t1*/ _boundary1_P_X_(/*t2*/tmp24)(/*t2*/tmp25) ), 190.0, 647.0, 1e-13, tmp26); ^~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.cpp:30: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:2122:28: error: use of undeclared identifier 'pipe4_P_Medium_P_nXi_' int tmp38_num_elems =(pipe4_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:2126:28: error: use of undeclared identifier 'pipe4_P_Medium_P_nXi_' int tmp39_num_elems =(pipe4_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:2130:222: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure1_f__nonlinear(_functions, /*box double*/_pipe4_P_statesFM7_P_p_, /*box double*/_boundary4_P_ports1_P_h_outflow_, /*box BaseArray*//*t1*/ _boundary4_P_X_(/*t2*/tmp38)(/*t2*/tmp39) ), 190.0, 647.0, 1e-13, tmp40); ^~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.cpp:30: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesInitialize.cpp:4890:28: error: use of undeclared identifier 'pipe2_P_Medium_P_nXi_' int tmp85_num_elems =(pipe2_P_Medium_P_nXi_-1)/1+1; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.BranchingDynamicPipesCalcHelperMain.o] Error 1