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.919/1.919, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.076e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09455, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.4993, allocations: 73.82 MB / 373.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.4996, allocations: 73.25 kB / 373.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02879/0.5284, allocations: 7.226 MB / 381.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5285, allocations: 3.938 kB / 381.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.5285, allocations: 9.375 kB / 381.1 MB, free: 11.79 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.001146/0.5297, allocations: 0.5582 MB / 381.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.5297, allocations: 9.812 kB / 381.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.5299, allocations: 58.31 kB / 381.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.53, allocations: 30.61 kB / 381.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005754/0.5306, allocations: 260.8 kB / 382 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.945e-05/0.5307, allocations: 52.86 kB / 382 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.5308, allocations: 22.39 kB / 382.1 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006329/0.5314, allocations: 223.7 kB / 382.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.5315, allocations: 0 / 382.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.5315, allocations: 6 kB / 382.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.5315, allocations: 4.625 kB / 382.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004679/0.532, allocations: 168.8 kB / 382.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.5341, allocations: 0.764 MB / 383.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006091/0.5348, allocations: 262.1 kB / 383.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.5353, allocations: 198.8 kB / 383.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.5353, allocations: 3.031 kB / 383.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005503/0.5359, allocations: 303 kB / 384 MB, free: 10.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.935e-06/0.5359, allocations: 0 / 384 MB, free: 10.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008948/0.5368, allocations: 393.4 kB / 384.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.5369, allocations: 234.6 kB / 384.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.5371, allocations: 168.6 kB / 384.7 MB, free: 9.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.5372, allocations: 45.16 kB / 384.8 MB, free: 9.883 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.715e-05/0.5373, allocations: 190.6 kB / 385 MB, free: 9.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.404e-05/0.5374, allocations: 83.34 kB / 385.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.5374, allocations: 5 kB / 385.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.95e-05/0.5375, allocations: 327.8 kB / 385.4 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.5378, allocations: 86.17 kB / 385.5 MB, free: 9.355 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.5381, allocations: 190.3 kB / 385.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.5384, allocations: 166.3 kB / 385.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.5384, allocations: 1.125 kB / 385.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008229/0.5392, allocations: 361.5 kB / 386.2 MB, free: 9.043 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.325e-05/0.5393, allocations: 61.34 kB / 386.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5393, allocations: 2.656 kB / 386.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.997e-05/0.5394, allocations: 5.219 kB / 386.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.5397, allocations: 47.64 kB / 386.3 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.5398, allocations: 10.28 kB / 386.3 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.5402, allocations: 36.31 kB / 386.3 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.5402, allocations: 16.69 kB / 386.3 MB, free: 8.957 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.0002735/0.5405, allocations: 218.1 kB / 386.6 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.5406, allocations: 36.38 kB / 386.6 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.517e-05/0.5407, allocations: 24.17 kB / 386.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.5407, allocations: 2.75 kB / 386.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5407, allocations: 1.375 kB / 386.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5407, allocations: 3.141 kB / 386.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.5424, allocations: 0.9661 MB / 387.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5425, allocations: 0 / 387.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.5427, allocations: 20.3 kB / 387.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-05/0.5428, allocations: 1.281 kB / 387.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.707e-05/0.5428, allocations: 16.17 kB / 387.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.5428, allocations: 1.281 kB / 387.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5428, allocations: 0 / 387.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.5439, allocations: 0.5747 MB / 388.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.979e-05/0.544, allocations: 97.86 kB / 388.3 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-05/0.5441, allocations: 17 kB / 388.3 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.5446, allocations: 30.09 kB / 388.3 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.5447, allocations: 30.78 kB / 388.4 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.056e-05/0.5448, allocations: 14.55 kB / 388.4 MB, free: 7.914 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000153/0.5449, allocations: 128.5 kB / 388.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.545, allocations: 0 / 388.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006299/0.5456, allocations: 73.41 kB / 388.6 MB, free: 7.832 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.001402/0.547, allocations: 1.221 MB / 389.8 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008052/0.5479, allocations: 387.9 kB / 390.2 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5479, allocations: 0 / 390.2 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/0.5484, allocations: 374.2 kB / 390.6 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.5494, allocations: 123.9 kB / 390.7 MB, free: 6.719 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.551, allocations: 454.9 kB / 391.1 MB, free: 6.527 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.5516, allocations: 0.7484 MB / 391.9 MB, free: 21.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.5519, allocations: 69.78 kB / 391.9 MB, free: 21.82 MB / 330.7 MB Notification: Performance of SimCode: time 2.465e-06/0.5519, allocations: 3.938 kB / 391.9 MB, free: 21.81 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.62/3.172, allocations: 3.95 MB / 395.9 MB, free: 21.5 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