Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.622e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.301, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4352, allocations: 73.15 MB / 367.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.4355, allocations: 71.97 kB / 367.4 MB, free: 8.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03028/0.4658, allocations: 7.163 MB / 374.6 MB, free: 1.582 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4658, allocations: 3.938 kB / 374.6 MB, free: 1.578 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.4659, allocations: 11.94 kB / 374.6 MB, free: 1.566 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.001154/0.467, allocations: 0.5612 MB / 375.2 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.4671, allocations: 8.031 kB / 375.2 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.4673, allocations: 31.67 kB / 375.2 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.4679, allocations: 255.3 kB / 375.5 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.468, allocations: 45.69 kB / 375.5 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.4681, allocations: 15.98 kB / 375.5 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005127/0.4686, allocations: 160.3 kB / 375.7 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.4691, allocations: 208 kB / 375.9 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.4691, allocations: 0 / 375.9 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.4692, allocations: 0 / 375.9 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4692, allocations: 4 kB / 375.9 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.4713, allocations: 0.7228 MB / 376.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/0.4719, allocations: 255.4 kB / 376.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.4725, allocations: 189.4 kB / 377 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.4725, allocations: 4 kB / 377 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005573/0.4731, allocations: 285.9 kB / 377.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 2.424e-06/0.4731, allocations: 0 / 377.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008426/0.4739, allocations: 313.5 kB / 377.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.4741, allocations: 229.6 kB / 377.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.4743, allocations: 153.5 kB / 378 MB, free: 13.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4744, allocations: 33.69 kB / 378 MB, free: 13.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.4745, allocations: 202.8 kB / 378.2 MB, free: 13.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.74e-05/0.4746, allocations: 71.06 kB / 378.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.4747, allocations: 0 / 378.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4748, allocations: 322.8 kB / 378.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.4751, allocations: 84.75 kB / 378.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.4754, allocations: 177.3 kB / 378.9 MB, free: 12.96 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.4757, allocations: 119.8 kB / 379 MB, free: 12.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.4757, allocations: 4 kB / 379 MB, free: 12.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007792/0.4765, allocations: 273.2 kB / 379.3 MB, free: 12.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.271e-05/0.4766, allocations: 63.36 kB / 379.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4766, allocations: 4.125 kB / 379.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.4766, allocations: 8 kB / 379.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.477, allocations: 51.84 kB / 379.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.477, allocations: 4 kB / 379.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.4774, allocations: 27.83 kB / 379.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.4774, allocations: 12 kB / 379.4 MB, free: 12.39 MB / 330.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.0002808/0.4777, allocations: 207.7 kB / 379.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008613/0.4786, allocations: 353.2 kB / 380 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.4787, allocations: 19.81 kB / 380 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-05/0.4788, allocations: 27.39 kB / 380 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.4788, allocations: 4 kB / 380 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4788, allocations: 0 / 380 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4788, allocations: 0 / 380 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.4804, allocations: 0.8071 MB / 380.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4805, allocations: 0 / 380.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.4807, allocations: 23.92 kB / 380.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.4807, allocations: 0 / 380.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.4808, allocations: 8.016 kB / 380.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.4808, allocations: 8 kB / 380.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4808, allocations: 0 / 380.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.4817, allocations: 478.8 kB / 381.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.822e-05/0.4818, allocations: 96.83 kB / 381.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.544e-05/0.4819, allocations: 19.88 kB / 381.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004055/0.4824, allocations: 23.98 kB / 381.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.4825, allocations: 27.91 kB / 381.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.4826, allocations: 20.17 kB / 381.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.4827, allocations: 123.3 kB / 381.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4827, allocations: 3.938 kB / 381.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005681/0.4833, allocations: 67.84 kB / 381.7 MB, free: 9.984 MB / 330.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.001408/0.4847, allocations: 1.099 MB / 382.8 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007806/0.4855, allocations: 370.9 kB / 383.2 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.4856, allocations: 0 / 383.2 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005423/0.4861, allocations: 370.6 kB / 383.5 MB, free: 8.082 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.4872, allocations: 112.8 kB / 383.6 MB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.4888, allocations: 442.9 kB / 384.1 MB, free: 7.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.4892, allocations: 0.7532 MB / 384.8 MB, free: 6.723 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.4894, allocations: 67.42 kB / 384.9 MB, free: 6.656 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4894, allocations: 0 / 384.9 MB, free: 6.656 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.417/2.907, allocations: 3.915 MB / 388.8 MB, free: 2.742 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat