Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.255e-05, allocations: 7.984 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.08964, allocations: 50.42 MB / 342.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.4874, allocations: 79.71 MB / 422.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4877, allocations: 70.41 kB / 422.3 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02702/0.5147, allocations: 7.222 MB / 429.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.985e-06/0.5148, allocations: 0 / 429.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.5148, allocations: 11.56 kB / 429.6 MB, free: 8.387 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.0009521/0.5158, allocations: 0.5832 MB / 430.1 MB, free: 7.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.5158, allocations: 8.031 kB / 430.2 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.5159, allocations: 27.72 kB / 430.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000495/0.5165, allocations: 256.5 kB / 430.4 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-05/0.5166, allocations: 44.45 kB / 430.5 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.5166, allocations: 27.44 kB / 430.5 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.5171, allocations: 226.8 kB / 430.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.5172, allocations: 0 / 430.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.5172, allocations: 7.938 kB / 430.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.792e-06/0.5172, allocations: 4 kB / 430.7 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.5176, allocations: 170.4 kB / 430.9 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.5193, allocations: 0.7572 MB / 431.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005027/0.5199, allocations: 260.4 kB / 431.9 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003826/0.5203, allocations: 196.7 kB / 432.1 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.5203, allocations: 4 kB / 432.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005046/0.5208, allocations: 301 kB / 432.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.801e-06/0.5208, allocations: 0 / 432.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.00081/0.5217, allocations: 389.5 kB / 432.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.5219, allocations: 233.3 kB / 433 MB, free: 5.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.5221, allocations: 165.5 kB / 433.2 MB, free: 5.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.084e-05/0.5221, allocations: 37.02 kB / 433.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.5223, allocations: 202.6 kB / 433.4 MB, free: 4.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.028e-05/0.5224, allocations: 72.03 kB / 433.5 MB, free: 4.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.5224, allocations: 3.062 kB / 433.5 MB, free: 4.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.5226, allocations: 329.2 kB / 433.8 MB, free: 4.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.5228, allocations: 89.56 kB / 433.9 MB, free: 4.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.5231, allocations: 171 kB / 434.1 MB, free: 4.234 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.5234, allocations: 198.7 kB / 434.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5235, allocations: 0 / 434.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007555/0.5242, allocations: 405.2 kB / 434.6 MB, free: 3.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.509e-05/0.5243, allocations: 93.09 kB / 434.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.462e-06/0.5244, allocations: 0 / 434.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.5244, allocations: 4 kB / 434.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.5246, allocations: 39.61 kB / 434.8 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.5247, allocations: 4 kB / 434.8 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.5249, allocations: 31.77 kB / 434.8 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.525, allocations: 27.52 kB / 434.8 MB, free: 3.504 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.0002532/0.5253, allocations: 220.4 kB / 435.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.5253, allocations: 23.72 kB / 435.1 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.5254, allocations: 20.78 kB / 435.1 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.806e-06/0.5254, allocations: 4 kB / 435.1 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.408e-06/0.5254, allocations: 0 / 435.1 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.5255, allocations: 7.984 kB / 435.1 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.5272, allocations: 0.9486 MB / 436.1 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.5272, allocations: 4.188 kB / 436.1 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.5275, allocations: 28.02 kB / 436.1 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.152e-06/0.5275, allocations: 7.875 kB / 436.1 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.62e-05/0.5276, allocations: 15.5 kB / 436.1 MB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.5277, allocations: 4 kB / 436.1 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5277, allocations: 0 / 436.1 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.5293, allocations: 0.5673 MB / 436.7 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.5294, allocations: 96.83 kB / 436.8 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.5296, allocations: 19.23 kB / 436.8 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.5301, allocations: 23.98 kB / 436.8 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5303, allocations: 23.7 kB / 436.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-05/0.5304, allocations: 15.17 kB / 436.9 MB, free: 1.633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002196/0.5306, allocations: 129.8 kB / 437 MB, free: 1.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.098e-06/0.5306, allocations: 0 / 437 MB, free: 1.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009433/0.5316, allocations: 78.25 kB / 437.1 MB, free: 1.453 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.0003358/0.5319, allocations: 133.4 kB / 437.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.5332, allocations: 0.4922 MB / 437.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.606e-06/0.5332, allocations: 0 / 437.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007542/0.534, allocations: 369 kB / 438 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.5352, allocations: 137 kB / 438.2 MB, free: 500 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.5368, allocations: 404.3 kB / 438.6 MB, free: 120 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006486/0.5375, allocations: 0.7525 MB / 439.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.5377, allocations: 19.44 kB / 439.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of SimCode: time 2.151e-06/0.5377, allocations: 0 / 439.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of Templates: time 0.006463/0.5442, allocations: 3.003 MB / 442.4 MB, free: 12.38 MB / 362.7 MB