Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.046/2.046, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.366e-05, allocations: 4 kB / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 47.58 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.405/0.5052, allocations: 78.07 MB / 395.1 MB, free: 9.656 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5055, allocations: 68.09 kB / 395.2 MB, free: 9.621 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02963/0.5351, allocations: 7.076 MB / 402.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5352, allocations: 0 / 402.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.5352, allocations: 8 kB / 402.2 MB, free: 3.754 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.001101/0.5363, allocations: 0.5851 MB / 402.8 MB, free: 3.125 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.5364, allocations: 12.03 kB / 402.8 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.395e-05/0.5365, allocations: 62.34 kB / 402.9 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.5366, allocations: 31.56 kB / 402.9 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.5372, allocations: 255.2 kB / 403.2 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.806e-05/0.5373, allocations: 47.95 kB / 403.2 MB, free: 2.699 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.648e-05/0.5374, allocations: 22.38 kB / 403.2 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005641/0.5379, allocations: 228.5 kB / 403.5 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.538, allocations: 0 / 403.5 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.538, allocations: 6.25 kB / 403.5 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.538, allocations: 4 kB / 403.5 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.5385, allocations: 162.9 kB / 403.6 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.5404, allocations: 0.7673 MB / 404.4 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000558/0.541, allocations: 252.5 kB / 404.7 MB, free: 1.516 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000451/0.5415, allocations: 206 kB / 404.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.5415, allocations: 3.438 kB / 404.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005651/0.5421, allocations: 299.3 kB / 405.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.935e-06/0.5421, allocations: 0 / 405.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009196/0.5431, allocations: 393.7 kB / 405.5 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.5432, allocations: 232 kB / 405.8 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.5435, allocations: 164 kB / 405.9 MB, free: 372 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.5435, allocations: 37 kB / 406 MB, free: 332 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.5436, allocations: 141 kB / 406.1 MB, free: 212 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.863e-05/0.5438, allocations: 75.06 kB / 406.2 MB, free: 148 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.5438, allocations: 7.469 kB / 406.2 MB, free: 144 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.544, allocations: 337.2 kB / 406.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.5442, allocations: 90.44 kB / 406.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.5445, allocations: 160.7 kB / 406.8 MB, free: 15.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.5449, allocations: 199.6 kB / 406.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5449, allocations: 0 / 406.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008339/0.5458, allocations: 414.9 kB / 407.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.241e-05/0.5459, allocations: 93.09 kB / 407.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.5459, allocations: 3.953 kB / 407.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.5459, allocations: 4 kB / 407.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.5463, allocations: 47.28 kB / 407.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.5463, allocations: 4 kB / 407.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.5466, allocations: 30.33 kB / 407.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.5467, allocations: 12 kB / 407.5 MB, free: 14.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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],$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 (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.0002712/0.547, allocations: 224.9 kB / 407.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.5471, allocations: 19.81 kB / 407.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.552e-05/0.5471, allocations: 23.34 kB / 407.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.5472, allocations: 11.94 kB / 407.8 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5472, allocations: 0 / 407.8 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.5472, allocations: 0 / 407.8 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.5489, allocations: 0.9542 MB / 408.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5489, allocations: 0 / 408.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.5491, allocations: 23.98 kB / 408.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.918e-06/0.5491, allocations: 0 / 408.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.5492, allocations: 19.67 kB / 408.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/0.5492, allocations: 4 kB / 408.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5492, allocations: 0 / 408.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.5503, allocations: 0.5734 MB / 409.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.5504, allocations: 100.1 kB / 409.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.5505, allocations: 15.23 kB / 409.5 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.5509, allocations: 31.42 kB / 409.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.5511, allocations: 23.52 kB / 409.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-05/0.5511, allocations: 11.44 kB / 409.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.5513, allocations: 132.5 kB / 409.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5513, allocations: 0 / 409.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005419/0.5519, allocations: 80.59 kB / 409.8 MB, free: 12.8 MB / 330.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.00246/0.5544, allocations: 1.216 MB / 411 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009778/0.5554, allocations: 0.4924 MB / 411.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5554, allocations: 0 / 411.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005423/0.5559, allocations: 379.4 kB / 411.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009997/0.557, allocations: 115.2 kB / 412 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.5585, allocations: 430.2 kB / 412.4 MB, free: 10.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.559, allocations: 0.7565 MB / 413.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002832/0.5593, allocations: 50.02 kB / 413.2 MB, free: 9.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.5594, allocations: 66.91 kB / 413.3 MB, free: 9.559 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.5595, allocations: 7.938 kB / 413.3 MB, free: 9.551 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03834/0.5978, allocations: 5.825 MB / 419.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002697/0.5981, allocations: 165.3 kB / 419.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.588/3.186, allocations: 3.938 kB / 419.3 MB, free: 3.574 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat