Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.357/2.357, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.839e-05/3.859e-05, allocations: 7.984 kB / 305 MB, free: 5.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3942, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8441/1.238, allocations: 311.2 MB / 0.6554 GB, free: 21.43 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/1.239, allocations: 84.95 kB / 0.6554 GB, free: 21.39 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8057/2.044, allocations: 96.39 MB / 0.7496 GB, free: 149.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.833e-06/2.044, allocations: 0 / 0.7496 GB, free: 149.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.189e-05/2.044, allocations: 7.656 kB / 0.7496 GB, free: 149.6 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002288/2.047, allocations: 0.8231 MB / 0.7504 GB, free: 148.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/2.047, allocations: 15.59 kB / 0.7504 GB, free: 148.9 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/2.047, allocations: 71.66 kB / 0.7505 GB, free: 148.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/2.047, allocations: 54.94 kB / 0.7505 GB, free: 148.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/2.049, allocations: 479.6 kB / 0.751 GB, free: 148.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.397e-05/2.049, allocations: 23.41 kB / 0.751 GB, free: 148.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.102e-05/2.049, allocations: 34.02 kB / 0.751 GB, free: 148.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/2.05, allocations: 0.5069 MB / 0.7515 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/2.05, allocations: 3.938 kB / 0.7515 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.349e-05/2.05, allocations: 11.69 kB / 0.7515 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.767e-05/2.05, allocations: 29.55 kB / 0.7516 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000976/2.051, allocations: 433 kB / 0.752 GB, free: 148.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004566/2.056, allocations: 2.255 MB / 0.7542 GB, free: 146.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005137/2.056, allocations: 190.6 kB / 0.7544 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/2.057, allocations: 113 kB / 0.7545 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001691/2.058, allocations: 1.067 MB / 0.7555 GB, free: 145.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/2.059, allocations: 140.3 kB / 0.7556 GB, free: 145.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/2.059, allocations: 0 / 0.7556 GB, free: 145.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005644/2.059, allocations: 224.7 kB / 0.7559 GB, free: 145.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/2.059, allocations: 169.4 kB / 0.756 GB, free: 145 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006883/2.06, allocations: 430.1 kB / 0.7564 GB, free: 144.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/2.06, allocations: 25.7 kB / 0.7565 GB, free: 144.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/2.06, allocations: 352.1 kB / 0.7568 GB, free: 144.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/2.06, allocations: 49.45 kB / 0.7568 GB, free: 144.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/2.06, allocations: 4 kB / 0.7568 GB, free: 144.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.802e-05/2.061, allocations: 333.9 kB / 0.7572 GB, free: 144 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/2.061, allocations: 104.4 kB / 0.7573 GB, free: 144 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/2.061, allocations: 327.2 kB / 0.7576 GB, free: 143.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/2.062, allocations: 192.3 kB / 0.7578 GB, free: 143.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/2.062, allocations: 3.281 kB / 0.7578 GB, free: 143.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001035/2.063, allocations: 461.3 kB / 0.7582 GB, free: 143.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000617/2.063, allocations: 2.819 MB / 0.761 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/2.063, allocations: 7.625 kB / 0.761 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.202e-05/2.063, allocations: 7.875 kB / 0.761 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006147/2.064, allocations: 93.27 kB / 0.7611 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/2.064, allocations: 11.78 kB / 0.7611 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000717/2.065, allocations: 66.47 kB / 0.7611 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.525e-05/2.065, allocations: 19.69 kB / 0.7612 GB, free: 140.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/2.065, allocations: 3.938 kB / 0.7612 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000973/2.066, allocations: 433.4 kB / 0.7616 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/2.066, allocations: 8.719 kB / 0.7616 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/2.066, allocations: 11.66 kB / 0.7616 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/2.066, allocations: 90.09 kB / 0.7617 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/2.066, allocations: 14.25 kB / 0.7617 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/2.067, allocations: 50.89 kB / 0.7617 GB, free: 140.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/2.067, allocations: 23.5 kB / 0.7618 GB, free: 140.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001818/2.067, allocations: 166.9 kB / 0.7619 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/2.067, allocations: 47 kB / 0.762 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007265/2.068, allocations: 292.5 kB / 0.7622 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/2.068, allocations: 3.891 kB / 0.7622 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/2.068, allocations: 0 / 0.7622 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/2.068, allocations: 0 / 0.7622 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005395/2.069, allocations: 381.5 kB / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/2.069, allocations: 0 / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/2.069, allocations: 24.88 kB / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/2.069, allocations: 0 / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/2.069, allocations: 11.61 kB / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/2.069, allocations: 0 / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/2.069, allocations: 0 / 0.7626 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/2.069, allocations: 286.4 kB / 0.7629 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/2.07, allocations: 131.4 kB / 0.763 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/2.07, allocations: 7.938 kB / 0.763 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/2.07, allocations: 11.72 kB / 0.7631 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/2.07, allocations: 14.75 kB / 0.7631 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.651e-05/2.07, allocations: 14.5 kB / 0.7631 GB, free: 139.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005108/2.071, allocations: 326.2 kB / 0.7634 GB, free: 139 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.071, allocations: 3.906 kB / 0.7634 GB, free: 139 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001932/2.073, allocations: 461.5 kB / 0.7638 GB, free: 138.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002396/2.075, allocations: 1.209 MB / 0.765 GB, free: 138.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/2.076, allocations: 0.6101 MB / 0.7656 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/2.077, allocations: 0 / 0.7656 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/2.077, allocations: 166.2 kB / 0.7658 GB, free: 137.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/2.078, allocations: 134.5 kB / 0.7659 GB, free: 137.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/2.081, allocations: 0.8201 MB / 0.7667 GB, free: 137.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/2.081, allocations: 0.8471 MB / 0.7675 GB, free: 136.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/2.081, allocations: 148.1 kB / 0.7677 GB, free: 136.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.062e-06/2.081, allocations: 0 / 0.7677 GB, free: 136.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.875/4.957, allocations: 11.54 MB / 0.7789 GB, free: 133.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat