Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.735/1.735, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.939e-05/3.951e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.4002, allocations: 68.73 MB / 332.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4005, allocations: 71.97 kB / 332.6 MB, free: 4.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02882/0.4294, allocations: 7.28 MB / 339.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4294, allocations: 0 / 339.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.4295, allocations: 8 kB / 339.9 MB, free: 13.56 MB / 298.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.001061/0.4305, allocations: 0.5684 MB / 340.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4306, allocations: 11.97 kB / 340.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.974e-05/0.4307, allocations: 58.53 kB / 340.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.115e-05/0.4308, allocations: 27.72 kB / 340.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.4313, allocations: 246.7 kB / 340.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.765e-05/0.4314, allocations: 61.48 kB / 340.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.4315, allocations: 20 kB / 340.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005778/0.4321, allocations: 228.2 kB / 341.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4321, allocations: 4 kB / 341.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.4322, allocations: 4 kB / 341.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.4322, allocations: 4 kB / 341.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004576/0.4327, allocations: 164.4 kB / 341.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.4346, allocations: 0.7758 MB / 342.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005843/0.4352, allocations: 267.5 kB / 342.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004524/0.4357, allocations: 200.8 kB / 342.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.4357, allocations: 0 / 342.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000534/0.4363, allocations: 302.1 kB / 342.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.4363, allocations: 0 / 342.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008941/0.4372, allocations: 404.8 kB / 343.2 MB, free: 10 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.4374, allocations: 229.5 kB / 343.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.4376, allocations: 165.8 kB / 343.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/0.4376, allocations: 33.7 kB / 343.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.4378, allocations: 199 kB / 343.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/0.4379, allocations: 78.98 kB / 343.9 MB, free: 9.246 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.4379, allocations: 12 kB / 343.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4381, allocations: 322.8 kB / 344.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.4383, allocations: 84.73 kB / 344.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.4387, allocations: 197.3 kB / 344.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.439, allocations: 155.3 kB / 344.7 MB, free: 8.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.439, allocations: 4.031 kB / 344.7 MB, free: 8.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007956/0.4398, allocations: 384.4 kB / 345 MB, free: 8.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.4399, allocations: 63.34 kB / 345.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4399, allocations: 4 kB / 345.1 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.4399, allocations: 7.953 kB / 345.1 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.4403, allocations: 43.91 kB / 345.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.4403, allocations: 4 kB / 345.2 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.4407, allocations: 39.95 kB / 345.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.4407, allocations: 12 kB / 345.2 MB, free: 7.844 MB / 298.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.0002475/0.441, allocations: 215.4 kB / 345.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.471e-05/0.441, allocations: 27.8 kB / 345.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.247e-05/0.4411, allocations: 22.78 kB / 345.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4411, allocations: 7.953 kB / 345.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4411, allocations: 0 / 345.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.4412, allocations: 4 kB / 345.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.4428, allocations: 0.9522 MB / 346.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4429, allocations: 7.969 kB / 346.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.4431, allocations: 27.92 kB / 346.5 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.4431, allocations: 4 kB / 346.5 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.4431, allocations: 4 kB / 346.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.4431, allocations: 3.984 kB / 346.5 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4432, allocations: 336 / 346.5 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4442, allocations: 0.5813 MB / 347.1 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.4444, allocations: 120.9 kB / 347.2 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.995e-05/0.4445, allocations: 19.98 kB / 347.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.4448, allocations: 27.97 kB / 347.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.445, allocations: 27.91 kB / 347.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.929e-05/0.445, allocations: 15.98 kB / 347.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.4452, allocations: 127.3 kB / 347.4 MB, free: 5.516 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4452, allocations: 0 / 347.4 MB, free: 5.516 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004848/0.4457, allocations: 87.8 kB / 347.5 MB, free: 5.43 MB / 298.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.00143/0.4471, allocations: 1.216 MB / 348.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007773/0.4479, allocations: 391.1 kB / 349.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4479, allocations: 0 / 349.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005618/0.4485, allocations: 378.8 kB / 349.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009465/0.4495, allocations: 131.9 kB / 349.6 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.4509, allocations: 465.8 kB / 350 MB, free: 2.746 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.4512, allocations: 0.7564 MB / 350.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.4514, allocations: 67.41 kB / 350.9 MB, free: 1.898 MB / 298.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4514, allocations: 0 / 350.9 MB, free: 1.898 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.499/2.95, allocations: 3.967 MB / 354.8 MB, free: 13.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat