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 1.914/1.914, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.625e-05/3.636e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09382, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.413/0.5069, allocations: 73.82 MB / 373.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5073, allocations: 67.28 kB / 373.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03025/0.5376, allocations: 7.228 MB / 381 MB, free: 12.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.5376, allocations: 0.9688 kB / 381 MB, free: 12.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.5376, allocations: 8.438 kB / 381 MB, free: 12.07 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.001125/0.5388, allocations: 0.5579 MB / 381.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.5389, allocations: 12.84 kB / 381.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.539, allocations: 54.53 kB / 381.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.5391, allocations: 32.92 kB / 381.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005808/0.5397, allocations: 253.4 kB / 382 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.827e-05/0.5398, allocations: 52.08 kB / 382 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.055e-05/0.5399, allocations: 20.75 kB / 382 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006516/0.5406, allocations: 223.6 kB / 382.2 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.5406, allocations: 7.938 kB / 382.2 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.5407, allocations: 9.5 kB / 382.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.5407, allocations: 5.875 kB / 382.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.5412, allocations: 167.7 kB / 382.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.5434, allocations: 0.7638 MB / 383.2 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/0.5441, allocations: 263 kB / 383.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004689/0.5446, allocations: 198.4 kB / 383.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.5446, allocations: 2.25 kB / 383.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005552/0.5452, allocations: 299.8 kB / 383.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.627e-06/0.5452, allocations: 1.094 kB / 383.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009443/0.5462, allocations: 404.1 kB / 384.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.5463, allocations: 230.5 kB / 384.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.5466, allocations: 164.5 kB / 384.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.5467, allocations: 40.02 kB / 384.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.5468, allocations: 191.9 kB / 384.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.761e-05/0.5469, allocations: 79.06 kB / 385 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.5469, allocations: 7.375 kB / 385 MB, free: 9.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.547, allocations: 330.2 kB / 385.4 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/0.5473, allocations: 85.8 kB / 385.4 MB, free: 9.652 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.5476, allocations: 194.7 kB / 385.6 MB, free: 9.531 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.548, allocations: 160.7 kB / 385.8 MB, free: 9.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.548, allocations: 5.328 kB / 385.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008145/0.5488, allocations: 372 kB / 386.2 MB, free: 9.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.5489, allocations: 58.41 kB / 386.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.5489, allocations: 8.125 kB / 386.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.576e-05/0.549, allocations: 8.062 kB / 386.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003771/0.5494, allocations: 46.91 kB / 386.3 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.5494, allocations: 8.125 kB / 386.3 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004061/0.5498, allocations: 32.53 kB / 386.3 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.5499, allocations: 15.69 kB / 386.3 MB, free: 9.25 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.0002965/0.5502, allocations: 223.9 kB / 386.5 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.5503, allocations: 29.42 kB / 386.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.178e-05/0.5504, allocations: 24.11 kB / 386.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.5504, allocations: 2.938 kB / 386.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.5504, allocations: 0 / 386.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.954e-06/0.5504, allocations: 5.312 kB / 386.6 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.5522, allocations: 0.9636 MB / 387.6 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5522, allocations: 1.281 kB / 387.6 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.5524, allocations: 23 kB / 387.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/0.5525, allocations: 1.219 kB / 387.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.5525, allocations: 11.2 kB / 387.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.5525, allocations: 5.219 kB / 387.6 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5526, allocations: 1.25 kB / 387.6 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.5536, allocations: 0.577 MB / 388.2 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.18e-05/0.5537, allocations: 98.41 kB / 388.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.078e-05/0.5538, allocations: 18.5 kB / 388.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.5542, allocations: 33.61 kB / 388.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.5544, allocations: 31.69 kB / 388.4 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.5544, allocations: 10.3 kB / 388.4 MB, free: 8.203 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00015/0.5546, allocations: 129.4 kB / 388.5 MB, free: 8.125 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5546, allocations: 0 / 388.5 MB, free: 8.125 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006239/0.5552, allocations: 74.67 kB / 388.6 MB, free: 8.121 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.001363/0.5566, allocations: 1.22 MB / 389.8 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000783/0.5574, allocations: 395.3 kB / 390.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5575, allocations: 0 / 390.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004988/0.558, allocations: 373.3 kB / 390.5 MB, free: 7.008 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.5591, allocations: 121.9 kB / 390.7 MB, free: 7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.5607, allocations: 463.4 kB / 391.1 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.561, allocations: 0.7483 MB / 391.9 MB, free: 6.105 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.5612, allocations: 67.16 kB / 391.9 MB, free: 6.098 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5612, allocations: 0 / 391.9 MB, free: 6.098 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.581/3.143, allocations: 3.971 MB / 395.9 MB, free: 5.797 MB / 314.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