Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.z|dA_Converter.vout|dA_Converter.y|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 2.229/2.229, allocations: 194.9 MB / 211.2 MB, free: 9.324 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.22e-05, allocations: 4 kB / 258.8 MB, free: 9.688 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3157, allocations: 44.51 MB / 303.3 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003379/0.3192, allocations: 1.899 MB / 305.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.3208, allocations: 0.6355 MB / 305.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.321, allocations: 5.156 kB / 305.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.3212, allocations: 29.83 kB / 305.9 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.3214, allocations: 55.05 kB / 305.9 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.3217, allocations: 61.86 kB / 306 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.3221, allocations: 136.6 kB / 306.1 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002209/0.3223, allocations: 68 kB / 306.2 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.3225, allocations: 84.03 kB / 306.3 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.3228, allocations: 83.44 kB / 306.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.3228, allocations: 9.594 kB / 306.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.3229, allocations: 8.656 kB / 306.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.359e-05/0.323, allocations: 38.28 kB / 306.4 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.559e-05/0.3231, allocations: 20.5 kB / 306.4 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.3234, allocations: 208.5 kB / 306.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3235, allocations: 0 / 306.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3235, allocations: 0 / 306.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.3235, allocations: 4 kB / 306.6 MB, free: 10.02 MB / 250.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.001269/0.3248, allocations: 0.5788 MB / 307.2 MB, free: 9.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3248, allocations: 13.84 kB / 307.2 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.325, allocations: 34 kB / 307.2 MB, free: 9.457 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.3254, allocations: 239.9 kB / 307.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.3256, allocations: 53.41 kB / 307.5 MB, free: 9.164 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.3257, allocations: 22.78 kB / 307.6 MB, free: 9.156 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009598/0.3266, allocations: 259 kB / 307.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3267, allocations: 4.906 kB / 307.8 MB, free: 9.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.3267, allocations: 7.25 kB / 307.8 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3268, allocations: 7.484 kB / 307.8 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008794/0.3276, allocations: 222.5 kB / 308 MB, free: 8.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.3298, allocations: 0.7762 MB / 308.8 MB, free: 8.102 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.3309, allocations: 303.4 kB / 309.1 MB, free: 7.797 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3309, allocations: 4 kB / 309.1 MB, free: 7.793 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008331/0.3318, allocations: 327.5 kB / 309.4 MB, free: 7.445 MB / 250.7 MB Notification: Performance of pre-optimization done (n=31): time 3.076e-06/0.3318, allocations: 0 / 309.4 MB, free: 7.445 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.002123/0.3339, allocations: 0.7586 MB / 310.2 MB, free: 6.633 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/0.3341, allocations: 211.8 kB / 310.4 MB, free: 6.383 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3344, allocations: 161.4 kB / 310.6 MB, free: 6.219 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.278e-05/0.3345, allocations: 37.69 kB / 310.6 MB, free: 6.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.3346, allocations: 195.2 kB / 310.8 MB, free: 5.984 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.3347, allocations: 75 kB / 310.9 MB, free: 5.91 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/0.3348, allocations: 15.94 kB / 310.9 MB, free: 5.895 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3349, allocations: 322.8 kB / 311.2 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/0.3354, allocations: 112.7 kB / 311.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.3359, allocations: 216.3 kB / 311.5 MB, free: 5.207 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/0.3365, allocations: 183.3 kB / 311.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.3365, allocations: 0 / 311.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00119/0.3377, allocations: 420.6 kB / 312.1 MB, free: 4.586 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.3378, allocations: 63.39 kB / 312.2 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3378, allocations: 0 / 312.2 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/0.3378, allocations: 8 kB / 312.2 MB, free: 4.504 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.3382, allocations: 43.86 kB / 312.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/0.3382, allocations: 7.984 kB / 312.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.3386, allocations: 51.66 kB / 312.3 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.3386, allocations: 16 kB / 312.3 MB, free: 4.387 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$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.0003506/0.339, allocations: 231.7 kB / 312.5 MB, free: 4.137 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.281e-05/0.3391, allocations: 27.7 kB / 312.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.119e-05/0.3392, allocations: 22.98 kB / 312.6 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3392, allocations: 8 kB / 312.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3392, allocations: 0 / 312.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.3392, allocations: 3.984 kB / 312.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.3412, allocations: 0.9055 MB / 313.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.3413, allocations: 0 / 313.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.3415, allocations: 19.98 kB / 313.5 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.3415, allocations: 4 kB / 313.5 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.3416, allocations: 11.98 kB / 313.5 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.255e-06/0.3416, allocations: 4 kB / 313.5 MB, free: 3.059 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3416, allocations: 3.953 kB / 313.5 MB, free: 3.055 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.3432, allocations: 0.6195 MB / 314.1 MB, free: 2.406 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.3434, allocations: 104.8 kB / 314.2 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3435, allocations: 16 kB / 314.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.3439, allocations: 27.97 kB / 314.3 MB, free: 2.242 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.344, allocations: 23.97 kB / 314.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.3441, allocations: 19.95 kB / 314.3 MB, free: 2.199 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001589/0.3442, allocations: 127.2 kB / 314.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3442, allocations: 0 / 314.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005029/0.3448, allocations: 75.84 kB / 314.5 MB, free: 2 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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.0002414/0.345, allocations: 137 kB / 314.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3464, allocations: 446.5 kB / 315.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3464, allocations: 0.5625 kB / 315.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008275/0.3472, allocations: 410.6 kB / 315.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009771/0.3482, allocations: 128.5 kB / 315.6 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.3498, allocations: 0.6218 MB / 316.3 MB, free: 204 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.3502, allocations: 0.7526 MB / 317 MB, free: 15.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3504, allocations: 19.44 kB / 317 MB, free: 15.4 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3504, allocations: 0 / 317 MB, free: 15.4 MB / 266.7 MB Notification: Performance of Templates: time 0.008114/0.3585, allocations: 3.01 MB / 320 MB, free: 12.4 MB / 266.7 MB