Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.044e-05, allocations: 4 kB / 255.4 MB, free: 2.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09338, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4107/0.5041, allocations: 73.82 MB / 373.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.5044, allocations: 67.88 kB / 373.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02883/0.5333, allocations: 7.219 MB / 381.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5333, allocations: 3.938 kB / 381.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.5333, allocations: 5 kB / 381.1 MB, free: 11.67 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001018/0.5344, allocations: 0.5612 MB / 381.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.5344, allocations: 12.16 kB / 381.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.869e-05/0.5345, allocations: 53.92 kB / 381.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.792e-05/0.5346, allocations: 29.77 kB / 381.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.5351, allocations: 261.6 kB / 382 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.5353, allocations: 49.58 kB / 382 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.5353, allocations: 18.91 kB / 382 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.5359, allocations: 229.5 kB / 382.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.5359, allocations: 0 / 382.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.536, allocations: 12.33 kB / 382.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.536, allocations: 3.562 kB / 382.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.5364, allocations: 166.5 kB / 382.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.5382, allocations: 0.7669 MB / 383.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005284/0.5388, allocations: 263 kB / 383.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004607/0.5393, allocations: 206.9 kB / 383.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.5393, allocations: 2.594 kB / 383.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005294/0.5399, allocations: 306.1 kB / 384 MB, free: 10.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.585e-06/0.5399, allocations: 0 / 384 MB, free: 10.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008857/0.5408, allocations: 397.9 kB / 384.4 MB, free: 10.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.5409, allocations: 224 kB / 384.6 MB, free: 9.902 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.5411, allocations: 169.4 kB / 384.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.5412, allocations: 42.17 kB / 384.8 MB, free: 9.766 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.5413, allocations: 133.6 kB / 384.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.333e-05/0.5414, allocations: 79.3 kB / 385 MB, free: 9.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.321e-05/0.5414, allocations: 7.625 kB / 385 MB, free: 9.621 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.5415, allocations: 335.6 kB / 385.3 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.5417, allocations: 89.8 kB / 385.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.5421, allocations: 193 kB / 385.6 MB, free: 9.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003103/0.5424, allocations: 163.4 kB / 385.8 MB, free: 9.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.5424, allocations: 5.328 kB / 385.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008287/0.5432, allocations: 388.2 kB / 386.2 MB, free: 8.973 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.318e-05/0.5433, allocations: 59.75 kB / 386.2 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.5433, allocations: 2.594 kB / 386.2 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.5434, allocations: 5.125 kB / 386.2 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.5437, allocations: 45.62 kB / 386.3 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.5438, allocations: 9.281 kB / 386.3 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.5441, allocations: 33.11 kB / 386.3 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/0.5442, allocations: 14.19 kB / 386.3 MB, free: 8.895 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],dA_Converter.x[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],dA_Converter.x[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],dA_Converter.x[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],dA_Converter.x[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],dA_Converter.x[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],dA_Converter.x[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0002385/0.5444, allocations: 214.6 kB / 386.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.018e-05/0.5445, allocations: 36.84 kB / 386.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.453e-05/0.5446, allocations: 20.91 kB / 386.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5446, allocations: 3.875 kB / 386.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.5446, allocations: 336 / 386.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.5447, allocations: 3.844 kB / 386.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.5462, allocations: 0.9607 MB / 387.6 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5463, allocations: 0 / 387.6 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.5465, allocations: 33.12 kB / 387.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.5465, allocations: 6.516 kB / 387.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.5465, allocations: 7.969 kB / 387.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.5465, allocations: 2.469 kB / 387.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5466, allocations: 2.719 kB / 387.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009778/0.5475, allocations: 0.5731 MB / 388.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-05/0.5476, allocations: 95.42 kB / 388.3 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.854e-05/0.5477, allocations: 19.16 kB / 388.3 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003823/0.5481, allocations: 35.08 kB / 388.3 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5483, allocations: 25.08 kB / 388.3 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.5483, allocations: 19.31 kB / 388.4 MB, free: 7.852 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001341/0.5484, allocations: 125.5 kB / 388.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5485, allocations: 1.312 kB / 388.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.549, allocations: 74.19 kB / 388.6 MB, free: 7.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.001161/0.5502, allocations: 1.225 MB / 389.8 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007299/0.5509, allocations: 391.5 kB / 390.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5509, allocations: 0.5625 kB / 390.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004966/0.5515, allocations: 372.5 kB / 390.5 MB, free: 6.656 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00094/0.5524, allocations: 127.5 kB / 390.7 MB, free: 6.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.5537, allocations: 425.5 kB / 391.1 MB, free: 6.484 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004813/0.5542, allocations: 0.7487 MB / 391.8 MB, free: 21.78 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002656/0.5545, allocations: 57.69 kB / 391.9 MB, free: 21.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.5547, allocations: 66.34 kB / 391.9 MB, free: 21.77 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5547, allocations: 4 kB / 391.9 MB, free: 21.76 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.5896, allocations: 5.784 MB / 397.7 MB, free: 21.19 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/0.5898, allocations: 159.4 kB / 397.9 MB, free: 20.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.764/3.354, allocations: 7.969 kB / 397.9 MB, free: 20.96 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat