Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9976/0.9976, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.264e-05/3.27e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.172, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06155/0.2336, allocations: 34.54 MB / 211.2 MB, free: 14.82 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.2339, allocations: 59.95 kB / 211.2 MB, free: 14.77 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.247, allocations: 3.004 MB / 214.2 MB, free: 11.75 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2471, allocations: 0 / 214.2 MB, free: 11.75 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.2471, allocations: 4 kB / 214.2 MB, free: 11.75 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008912/0.248, allocations: 454.4 kB / 214.7 MB, free: 11.26 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.2481, allocations: 8.031 kB / 214.7 MB, free: 11.25 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.213e-05/0.2482, allocations: 54.55 kB / 214.8 MB, free: 11.19 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/0.2483, allocations: 15.81 kB / 214.8 MB, free: 11.18 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.2486, allocations: 218.7 kB / 215 MB, free: 10.92 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.2486, allocations: 20.36 kB / 215 MB, free: 10.9 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.2487, allocations: 16 kB / 215 MB, free: 10.89 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004483/0.2492, allocations: 162.7 kB / 215.2 MB, free: 10.72 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.2492, allocations: 0 / 215.2 MB, free: 10.72 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2492, allocations: 7.953 kB / 215.2 MB, free: 10.71 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.2493, allocations: 4 kB / 215.2 MB, free: 10.71 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003667/0.2496, allocations: 116 kB / 215.3 MB, free: 10.6 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.2516, allocations: 0.7585 MB / 216.1 MB, free: 9.77 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.252, allocations: 134.5 kB / 216.2 MB, free: 9.629 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.2523, allocations: 84.86 kB / 216.3 MB, free: 9.543 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.2523, allocations: 0 / 216.3 MB, free: 9.543 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.2523, allocations: 38.75 kB / 216.3 MB, free: 9.496 MB / 186.7 MB Notification: Performance of pre-optimization done (n=13): time 2.354e-06/0.2523, allocations: 0 / 216.3 MB, free: 9.496 MB / 186.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003909/0.2527, allocations: 121.6 kB / 216.4 MB, free: 9.371 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.2528, allocations: 59.41 kB / 216.5 MB, free: 9.301 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.253, allocations: 133.8 kB / 216.6 MB, free: 9.16 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.253, allocations: 29.7 kB / 216.6 MB, free: 9.125 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2532, allocations: 194.6 kB / 216.8 MB, free: 8.934 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.877e-05/0.2532, allocations: 47.3 kB / 216.9 MB, free: 8.887 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.2533, allocations: 7.938 kB / 216.9 MB, free: 8.879 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2534, allocations: 318.8 kB / 217.2 MB, free: 8.559 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.2536, allocations: 39.95 kB / 217.2 MB, free: 8.52 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.2537, allocations: 61.7 kB / 217.3 MB, free: 8.453 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.2539, allocations: 40.61 kB / 217.3 MB, free: 8.414 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2539, allocations: 0 / 217.3 MB, free: 8.414 MB / 186.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003798/0.2543, allocations: 146.9 kB / 217.5 MB, free: 8.266 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.2543, allocations: 4 kB / 217.5 MB, free: 8.262 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2543, allocations: 4 kB / 217.5 MB, free: 8.258 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.2544, allocations: 7.984 kB / 217.5 MB, free: 8.25 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.2548, allocations: 43.95 kB / 217.5 MB, free: 8.207 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.2548, allocations: 4 kB / 217.5 MB, free: 8.203 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.255, allocations: 19.83 kB / 217.6 MB, free: 8.184 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2551, allocations: 7.938 kB / 217.6 MB, free: 8.176 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(start = 4.0 unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real L.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001895/0.2553, allocations: 119.8 kB / 217.7 MB, free: 8.055 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.2553, allocations: 11.91 kB / 217.7 MB, free: 8.043 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.893e-05/0.2554, allocations: 32.72 kB / 217.7 MB, free: 8.008 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2554, allocations: 0 / 217.7 MB, free: 8.008 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2554, allocations: 0 / 217.7 MB, free: 8.008 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2554, allocations: 0 / 217.7 MB, free: 8.008 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.2559, allocations: 265.4 kB / 218 MB, free: 7.699 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2559, allocations: 0 / 218 MB, free: 7.699 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004069/0.2563, allocations: 39.98 kB / 218 MB, free: 7.66 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.2563, allocations: 3.984 kB / 218 MB, free: 7.656 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.2564, allocations: 4 kB / 218 MB, free: 7.652 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2564, allocations: 7.938 kB / 218 MB, free: 7.645 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2564, allocations: 0 / 218 MB, free: 7.645 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004935/0.2569, allocations: 275.5 kB / 218.3 MB, free: 7.359 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.422e-05/0.257, allocations: 92.86 kB / 218.4 MB, free: 7.25 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.257, allocations: 4 kB / 218.4 MB, free: 7.246 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.2573, allocations: 16.03 kB / 218.4 MB, free: 7.23 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.2574, allocations: 15.98 kB / 218.4 MB, free: 7.215 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.2574, allocations: 0 / 218.4 MB, free: 7.215 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001346/0.2575, allocations: 118.3 kB / 218.6 MB, free: 7.102 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2575, allocations: 0 / 218.6 MB, free: 7.102 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003826/0.2579, allocations: 47.84 kB / 218.6 MB, free: 7.055 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008545/0.2588, allocations: 0.8061 MB / 219.4 MB, free: 6.219 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.2592, allocations: 105.4 kB / 219.5 MB, free: 6.117 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2592, allocations: 3.938 kB / 219.5 MB, free: 6.113 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.2593, allocations: 44 kB / 219.6 MB, free: 6.07 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005191/0.2598, allocations: 36.03 kB / 219.6 MB, free: 6.035 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.2612, allocations: 469.5 kB / 220.1 MB, free: 5.535 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.2616, allocations: 0.7204 MB / 220.8 MB, free: 4.789 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.2618, allocations: 59.41 kB / 220.8 MB, free: 4.734 MB / 186.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2618, allocations: 7.938 kB / 220.8 MB, free: 4.727 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.503/2.765, allocations: 2.738 MB / 223.6 MB, free: 1.992 MB / 186.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat does not exist to compare? outputFormat=mat