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.798/1.798, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.38e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2668, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.3875, allocations: 68.07 MB / 326.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.3878, allocations: 71.97 kB / 326.5 MB, free: 9.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02926/0.4171, allocations: 7.23 MB / 333.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4171, allocations: 0 / 333.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.4172, allocations: 4 kB / 333.7 MB, free: 2.52 MB / 282.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.001058/0.4182, allocations: 0.5648 MB / 334.3 MB, free: 1.898 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.4183, allocations: 12.03 kB / 334.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.4184, allocations: 27.72 kB / 334.3 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/0.419, allocations: 254.6 kB / 334.5 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.4191, allocations: 45.48 kB / 334.6 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.4192, allocations: 19.98 kB / 334.6 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004218/0.4196, allocations: 152.4 kB / 334.8 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005008/0.4201, allocations: 208.2 kB / 335 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4201, allocations: 0 / 335 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.4202, allocations: 0 / 335 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.4202, allocations: 4 kB / 335 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.4221, allocations: 0.7214 MB / 335.7 MB, free: 372 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.4226, allocations: 247.5 kB / 335.9 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.4231, allocations: 193.4 kB / 336.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.4231, allocations: 4 kB / 336.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005312/0.4237, allocations: 282 kB / 336.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.435e-06/0.4237, allocations: 4 kB / 336.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008069/0.4245, allocations: 313.5 kB / 336.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.4247, allocations: 229.6 kB / 336.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.4249, allocations: 165.4 kB / 337.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.4249, allocations: 29.7 kB / 337.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.4251, allocations: 195 kB / 337.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/0.4252, allocations: 75 kB / 337.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.93e-05/0.4252, allocations: 0 / 337.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4254, allocations: 326.9 kB / 337.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.4256, allocations: 80.72 kB / 337.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002909/0.4259, allocations: 169.1 kB / 337.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.4262, allocations: 115.8 kB / 338.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.4262, allocations: 4 kB / 338.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006781/0.4269, allocations: 281.1 kB / 338.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/0.4269, allocations: 67.06 kB / 338.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.427, allocations: 8 kB / 338.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.994e-05/0.427, allocations: 4 kB / 338.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.4274, allocations: 43.91 kB / 338.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.4274, allocations: 8 kB / 338.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.4277, allocations: 31.78 kB / 338.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.4278, allocations: 12 kB / 338.5 MB, free: 13.35 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.0002621/0.4281, allocations: 215.7 kB / 338.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007826/0.4289, allocations: 341.4 kB / 339.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.4289, allocations: 27.67 kB / 339.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.716e-05/0.429, allocations: 27.39 kB / 339.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4291, allocations: 4 kB / 339.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4291, allocations: 3.938 kB / 339.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.4291, allocations: 0 / 339.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.4305, allocations: 0.8035 MB / 339.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4306, allocations: 3.938 kB / 339.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.4308, allocations: 19.98 kB / 339.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4308, allocations: 4.031 kB / 339.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.4308, allocations: 15.98 kB / 340 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4309, allocations: 0 / 340 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4309, allocations: 0 / 340 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000871/0.4318, allocations: 470.8 kB / 340.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.432, allocations: 125 kB / 340.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.128e-05/0.4321, allocations: 16 kB / 340.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.4324, allocations: 27.91 kB / 340.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.4326, allocations: 23.97 kB / 340.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-05/0.4326, allocations: 19.94 kB / 340.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001325/0.4328, allocations: 120.3 kB / 340.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4328, allocations: 0 / 340.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005326/0.4333, allocations: 67.94 kB / 340.8 MB, free: 10.93 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.001291/0.4346, allocations: 1.099 MB / 341.9 MB, free: 9.797 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007633/0.4354, allocations: 379.4 kB / 342.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4354, allocations: 0 / 342.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005253/0.436, allocations: 366.7 kB / 342.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009962/0.437, allocations: 116.2 kB / 342.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.4384, allocations: 438.9 kB / 343.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.4388, allocations: 0.7526 MB / 343.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.439, allocations: 67.42 kB / 344 MB, free: 7.59 MB / 298.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4391, allocations: 7.938 kB / 344 MB, free: 7.582 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.327/2.766, allocations: 3.912 MB / 347.9 MB, free: 3.68 MB / 298.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