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.706/1.706, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.686e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2559, allocations: 38.77 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.3806, allocations: 68.73 MB / 332.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.381, allocations: 71.95 kB / 332.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03136/0.4124, allocations: 7.28 MB / 339.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4124, allocations: 0 / 339.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.051e-05/0.4125, allocations: 4 kB / 339.9 MB, free: 13.55 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.001232/0.4137, allocations: 0.5763 MB / 340.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.4138, allocations: 8.031 kB / 340.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.4139, allocations: 54.55 kB / 340.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.414, allocations: 27.72 kB / 340.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006327/0.4147, allocations: 254.6 kB / 340.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.4148, allocations: 57.48 kB / 340.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.4149, allocations: 27.92 kB / 340.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.4155, allocations: 228.2 kB / 341.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.4156, allocations: 0 / 341.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.4156, allocations: 4 kB / 341.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.4156, allocations: 4 kB / 341.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.4161, allocations: 160.4 kB / 341.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.4183, allocations: 0.7759 MB / 342.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006161/0.419, allocations: 259.4 kB / 342.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/0.4195, allocations: 202 kB / 342.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.4196, allocations: 4 kB / 342.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005993/0.4202, allocations: 301.1 kB / 342.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 6.061e-06/0.4202, allocations: 0 / 342.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.000959/0.4212, allocations: 396.9 kB / 343.2 MB, free: 10 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.4214, allocations: 233.6 kB / 343.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.4217, allocations: 165.7 kB / 343.6 MB, free: 9.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.919e-05/0.4218, allocations: 41.69 kB / 343.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.4219, allocations: 191 kB / 343.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.422, allocations: 75.11 kB / 343.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/0.4221, allocations: 8 kB / 343.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4222, allocations: 326.8 kB / 344.2 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.4225, allocations: 88.66 kB / 344.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.4228, allocations: 185.2 kB / 344.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/0.4232, allocations: 171.2 kB / 344.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.4232, allocations: 0 / 344.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008369/0.4241, allocations: 368.8 kB / 345 MB, free: 8.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.633e-05/0.4242, allocations: 59.39 kB / 345.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.4242, allocations: 4 kB / 345.1 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.4242, allocations: 7.953 kB / 345.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.4246, allocations: 47.86 kB / 345.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.4246, allocations: 7.984 kB / 345.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.425, allocations: 35.95 kB / 345.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.4251, allocations: 19.98 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.0003052/0.4254, allocations: 215.4 kB / 345.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.4255, allocations: 23.81 kB / 345.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.495e-05/0.4256, allocations: 26.72 kB / 345.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.4256, allocations: 0 / 345.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.4256, allocations: 15.94 kB / 345.5 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4256, allocations: 0 / 345.5 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.4275, allocations: 0.9506 MB / 346.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4275, allocations: 0 / 346.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.4278, allocations: 24.02 kB / 346.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/0.4278, allocations: 4 kB / 346.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.4279, allocations: 11.98 kB / 346.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.4279, allocations: 0 / 346.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.4279, allocations: 7.938 kB / 346.5 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.429, allocations: 0.5695 MB / 347.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.4293, allocations: 124.9 kB / 347.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.4294, allocations: 19.98 kB / 347.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.4298, allocations: 23.98 kB / 347.2 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4299, allocations: 27.95 kB / 347.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.43, allocations: 8 kB / 347.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.4302, allocations: 123.5 kB / 347.4 MB, free: 5.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4302, allocations: 4 kB / 347.4 MB, free: 5.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006084/0.4308, allocations: 87.78 kB / 347.5 MB, free: 5.445 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.001596/0.4324, allocations: 1.22 MB / 348.7 MB, free: 4.184 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008632/0.4333, allocations: 394.9 kB / 349.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.4334, allocations: 0 / 349.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.434, allocations: 372.2 kB / 349.4 MB, free: 3.387 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.4351, allocations: 123.9 kB / 349.6 MB, free: 3.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.4367, allocations: 463.2 kB / 350 MB, free: 2.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.4372, allocations: 0.7486 MB / 350.8 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002025/0.4374, allocations: 71.41 kB / 350.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4374, allocations: 0 / 350.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.551/2.988, allocations: 3.963 MB / 354.8 MB, free: 13.98 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