Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.487e-05/3.49e-05, allocations: 6.812 kB / 292.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4432/0.5528, allocations: 79.65 MB / 422.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.5531, allocations: 76.14 kB / 422.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03024/0.5834, allocations: 7.23 MB / 430.1 MB, free: 8.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5834, allocations: 0 / 430.1 MB, free: 8.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.5835, allocations: 4 kB / 430.1 MB, free: 8.531 MB / 346.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.001265/0.5847, allocations: 0.5925 MB / 430.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5848, allocations: 8.031 kB / 430.7 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.5849, allocations: 55.05 kB / 430.8 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.585, allocations: 27.72 kB / 430.8 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005944/0.5857, allocations: 253.8 kB / 431 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.627e-05/0.5858, allocations: 48.56 kB / 431.1 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-05/0.5858, allocations: 26.83 kB / 431.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/0.5864, allocations: 219.4 kB / 431.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.5865, allocations: 0 / 431.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.5865, allocations: 10.5 kB / 431.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.5865, allocations: 4 kB / 431.3 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.587, allocations: 168.9 kB / 431.5 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.5892, allocations: 0.7625 MB / 432.3 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/0.5898, allocations: 256.9 kB / 432.5 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004423/0.5903, allocations: 201.7 kB / 432.7 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.5903, allocations: 7.938 kB / 432.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005635/0.5909, allocations: 293.9 kB / 433 MB, free: 5.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 4.639e-06/0.5909, allocations: 3.984 kB / 433 MB, free: 5.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009433/0.5918, allocations: 392.2 kB / 433.4 MB, free: 5.559 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.592, allocations: 237.6 kB / 433.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.5923, allocations: 163.8 kB / 433.8 MB, free: 5.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.155e-05/0.5924, allocations: 39.73 kB / 433.8 MB, free: 5.098 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.5925, allocations: 133.2 kB / 434 MB, free: 4.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.5926, allocations: 72.95 kB / 434 MB, free: 4.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.5926, allocations: 7.062 kB / 434 MB, free: 4.918 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5928, allocations: 332.9 kB / 434.4 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.5931, allocations: 95.61 kB / 434.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.5934, allocations: 162 kB / 434.6 MB, free: 4.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.5937, allocations: 197.1 kB / 434.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.5938, allocations: 0 / 434.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008315/0.5946, allocations: 420.2 kB / 435.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.5947, allocations: 93.56 kB / 435.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.5947, allocations: 4 kB / 435.3 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.5948, allocations: 4 kB / 435.3 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.5951, allocations: 43.41 kB / 435.4 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.5952, allocations: 0 / 435.4 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.5955, allocations: 34.94 kB / 435.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-05/0.5956, allocations: 14.97 kB / 435.4 MB, free: 3.637 MB / 346.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.0003121/0.5959, allocations: 216.8 kB / 435.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.596, allocations: 27.72 kB / 435.6 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-05/0.5961, allocations: 20.89 kB / 435.7 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.5961, allocations: 4 kB / 435.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5961, allocations: 0 / 435.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.5961, allocations: 4 kB / 435.7 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.5979, allocations: 0.9619 MB / 436.6 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.5979, allocations: 4 kB / 436.6 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.5982, allocations: 19.98 kB / 436.7 MB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/0.5982, allocations: 7.984 kB / 436.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.5982, allocations: 11.88 kB / 436.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.5983, allocations: 0 / 436.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5983, allocations: 0 / 436.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.5993, allocations: 0.5718 MB / 437.3 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.222e-05/0.5994, allocations: 92.83 kB / 437.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.5996, allocations: 19.92 kB / 437.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.6, allocations: 26.98 kB / 437.4 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.6001, allocations: 27.89 kB / 437.4 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.6002, allocations: 11.69 kB / 437.4 MB, free: 1.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001572/0.6003, allocations: 125.4 kB / 437.5 MB, free: 1.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6003, allocations: 0 / 437.5 MB, free: 1.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005513/0.6009, allocations: 78.98 kB / 437.6 MB, free: 1.59 MB / 346.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.001545/0.6025, allocations: 1.22 MB / 438.8 MB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009629/0.6035, allocations: 0.4987 MB / 439.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.6035, allocations: 0 / 439.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000616/0.6041, allocations: 372.6 kB / 439.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.6052, allocations: 130.9 kB / 439.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.6066, allocations: 440.7 kB / 440.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.6071, allocations: 0.7448 MB / 441 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.6074, allocations: 54.02 kB / 441.1 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.6076, allocations: 69.91 kB / 441.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.422e-06/0.6076, allocations: 3.938 kB / 441.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.6451, allocations: 5.825 MB / 447 MB, free: 8.637 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/0.6454, allocations: 153.9 kB / 447.1 MB, free: 8.418 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.239, allocations: 3.938 kB / 447.1 MB, free: 8.414 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat