Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.623/1.623, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.351e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2453, allocations: 38.76 MB / 263.9 MB, free: 9.719 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.365, allocations: 68.74 MB / 332.6 MB, free: 4.879 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.3653, allocations: 75.95 kB / 332.7 MB, free: 4.805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02984/0.3952, allocations: 7.281 MB / 340 MB, free: 13.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3952, allocations: 0 / 340 MB, free: 13.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.3953, allocations: 8 kB / 340 MB, free: 13.5 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.001101/0.3964, allocations: 0.5686 MB / 340.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3964, allocations: 11.97 kB / 340.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.244e-05/0.3966, allocations: 54.55 kB / 340.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.988e-05/0.3967, allocations: 31.72 kB / 340.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005317/0.3972, allocations: 246.7 kB / 340.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3973, allocations: 57.47 kB / 340.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.442e-05/0.3974, allocations: 23.94 kB / 341 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005904/0.398, allocations: 224.2 kB / 341.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.398, allocations: 0 / 341.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.3981, allocations: 8 kB / 341.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.3981, allocations: 8 kB / 341.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.3986, allocations: 160.4 kB / 341.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.4006, allocations: 0.772 MB / 342.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.4012, allocations: 251.5 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004907/0.4017, allocations: 205.2 kB / 342.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4017, allocations: 7.938 kB / 342.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005728/0.4023, allocations: 301.9 kB / 342.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.016e-06/0.4023, allocations: 0 / 342.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009351/0.4033, allocations: 392.9 kB / 343.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/0.4035, allocations: 233.6 kB / 343.5 MB, free: 9.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.4037, allocations: 165.6 kB / 343.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.643e-05/0.4038, allocations: 45.69 kB / 343.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.4039, allocations: 128.6 kB / 343.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.404, allocations: 75.05 kB / 343.9 MB, free: 9.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.4041, allocations: 8 kB / 343.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4042, allocations: 334.8 kB / 344.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.4045, allocations: 88.67 kB / 344.3 MB, free: 8.832 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.4048, allocations: 185.5 kB / 344.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.4052, allocations: 163.3 kB / 344.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.4052, allocations: 4 kB / 344.6 MB, free: 8.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008419/0.4061, allocations: 376.7 kB / 345 MB, free: 8.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.401e-05/0.4061, allocations: 63.41 kB / 345.1 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4062, allocations: 4 kB / 345.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.4062, allocations: 11.95 kB / 345.1 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.4066, allocations: 51.97 kB / 345.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.4066, allocations: 4 kB / 345.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.4069, allocations: 35.83 kB / 345.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.407, allocations: 12 kB / 345.2 MB, free: 7.855 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.0002707/0.4073, allocations: 215.4 kB / 345.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.11e-05/0.4074, allocations: 23.72 kB / 345.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.419e-05/0.4074, allocations: 30.7 kB / 345.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.4075, allocations: 4 kB / 345.5 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4075, allocations: 3.953 kB / 345.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4075, allocations: 0 / 345.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.4093, allocations: 0.9585 MB / 346.4 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.4093, allocations: 0 / 346.4 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.4095, allocations: 23.92 kB / 346.4 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.4095, allocations: 0 / 346.4 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.052e-05/0.4096, allocations: 12 kB / 346.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.4096, allocations: 0 / 346.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4096, allocations: 3.938 kB / 346.5 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.4107, allocations: 0.5886 MB / 347.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.4109, allocations: 124.8 kB / 347.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.969e-05/0.411, allocations: 12 kB / 347.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.4114, allocations: 31.98 kB / 347.2 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.4115, allocations: 23.95 kB / 347.2 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.4116, allocations: 8 kB / 347.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.4118, allocations: 131.2 kB / 347.4 MB, free: 5.531 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4118, allocations: 0 / 347.4 MB, free: 5.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005541/0.4123, allocations: 75.94 kB / 347.5 MB, free: 5.457 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.001544/0.4139, allocations: 1.224 MB / 348.7 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008333/0.4147, allocations: 386.9 kB / 349.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4148, allocations: 256 / 349.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.4154, allocations: 379.9 kB / 349.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009809/0.4164, allocations: 128 kB / 349.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.4178, allocations: 425.6 kB / 350 MB, free: 2.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4182, allocations: 0.7565 MB / 350.7 MB, free: 2.035 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.4185, allocations: 57.94 kB / 350.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4187, allocations: 67.42 kB / 350.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4187, allocations: 0 / 350.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.4541, allocations: 5.791 MB / 356.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003236/0.4544, allocations: 157.7 kB / 356.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/2.902, allocations: 0 / 356.8 MB, free: 11.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat