Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.379e-05, allocations: 6.812 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.456/0.5665, allocations: 79.71 MB / 422.3 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000382/0.5669, allocations: 69.22 kB / 422.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04803/0.615, allocations: 7.223 MB / 429.6 MB, free: 8.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.6151, allocations: 3.938 kB / 429.6 MB, free: 8.434 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.901e-05/0.6151, allocations: 4 kB / 429.6 MB, free: 8.43 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.001683/0.6168, allocations: 0.5903 MB / 430.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.967e-05/0.6169, allocations: 12.03 kB / 430.2 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.6171, allocations: 49.42 kB / 430.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.6173, allocations: 31.72 kB / 430.3 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.618, allocations: 257.6 kB / 430.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.306e-05/0.6181, allocations: 52.62 kB / 430.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.6182, allocations: 23.83 kB / 430.6 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.6188, allocations: 219.4 kB / 430.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.6188, allocations: 0 / 430.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.6189, allocations: 9.812 kB / 430.9 MB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.6189, allocations: 4 kB / 430.9 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.6193, allocations: 165.2 kB / 431 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.6213, allocations: 0.7653 MB / 431.8 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005552/0.6219, allocations: 262.5 kB / 432.1 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.6223, allocations: 198.2 kB / 432.2 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.6224, allocations: 4 kB / 432.3 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005382/0.6229, allocations: 299.7 kB / 432.5 MB, free: 5.781 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.956e-06/0.6229, allocations: 0 / 432.5 MB, free: 5.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009021/0.6239, allocations: 392.9 kB / 432.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.624, allocations: 236.5 kB / 433.2 MB, free: 5.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.6243, allocations: 161.8 kB / 433.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.6243, allocations: 40.83 kB / 433.4 MB, free: 4.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.6245, allocations: 200.8 kB / 433.6 MB, free: 4.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.6246, allocations: 78.05 kB / 433.6 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.6246, allocations: 10.69 kB / 433.6 MB, free: 4.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6248, allocations: 325.6 kB / 434 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.6251, allocations: 88.44 kB / 434 MB, free: 4.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.6254, allocations: 159.7 kB / 434.2 MB, free: 4.211 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.6257, allocations: 200.3 kB / 434.4 MB, free: 4.031 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.6258, allocations: 4 kB / 434.4 MB, free: 4.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007763/0.6265, allocations: 387.9 kB / 434.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.958e-05/0.6266, allocations: 96.03 kB / 434.9 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.6267, allocations: 8.125 kB / 434.9 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.6267, allocations: 4 kB / 434.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.627, allocations: 46.72 kB / 434.9 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.6271, allocations: 4.172 kB / 434.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.6274, allocations: 31.28 kB / 435 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.6275, allocations: 23.06 kB / 435 MB, free: 3.477 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.0002741/0.6277, allocations: 215.7 kB / 435.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.6278, allocations: 23.72 kB / 435.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.468e-05/0.6279, allocations: 27.77 kB / 435.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.6279, allocations: 7.984 kB / 435.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.6279, allocations: 0 / 435.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.6279, allocations: 0 / 435.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.6297, allocations: 0.9535 MB / 436.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.6297, allocations: 0 / 436.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.6299, allocations: 27.42 kB / 436.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.672e-05/0.6299, allocations: 7.938 kB / 436.2 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.63, allocations: 11.31 kB / 436.3 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.63, allocations: 4.031 kB / 436.3 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.63, allocations: 0 / 436.3 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.631, allocations: 0.5694 MB / 436.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/0.6311, allocations: 92.83 kB / 436.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.124e-05/0.6312, allocations: 22.55 kB / 436.9 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.6316, allocations: 27.23 kB / 437 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.6318, allocations: 35.77 kB / 437 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.6318, allocations: 7.75 kB / 437 MB, free: 1.605 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.632, allocations: 127.6 kB / 437.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.632, allocations: 0 / 437.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005132/0.6325, allocations: 74.38 kB / 437.2 MB, free: 1.426 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.001499/0.634, allocations: 1.213 MB / 438.4 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009379/0.635, allocations: 0.4928 MB / 438.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.635, allocations: 4.125 kB / 438.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.6355, allocations: 371.1 kB / 439.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009872/0.6365, allocations: 121.1 kB / 439.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.638, allocations: 470.1 kB / 439.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.6384, allocations: 0.7491 MB / 440.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.6386, allocations: 72.78 kB / 440.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6386, allocations: 0 / 440.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.504/3.143, allocations: 3.976 MB / 444.7 MB, free: 10.3 MB / 362.7 MB