Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.753/1.753, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2067/1.96, allocations: 41.11 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/2.059, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.271/2.33, allocations: 68.3 MB / 326.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/2.331, allocations: 75.83 kB / 326.4 MB, free: 3.723 MB / 266.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.03359/2.364, allocations: 7.511 MB / 333.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/2.364, allocations: 8 kB / 333.9 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/2.365, allocations: 27.72 kB / 333.9 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006406/2.365, allocations: 264.6 kB / 334.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.827e-05/2.365, allocations: 45.69 kB / 334.2 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/2.365, allocations: 12 kB / 334.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004721/2.366, allocations: 157.1 kB / 334.4 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005396/2.366, allocations: 203.6 kB / 334.6 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/2.367, allocations: 0 / 334.6 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/2.367, allocations: 0 / 334.6 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/2.367, allocations: 11.88 kB / 334.6 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/2.369, allocations: 0.7327 MB / 335.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000547/2.369, allocations: 253.7 kB / 335.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004517/2.37, allocations: 196.2 kB / 335.8 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/2.37, allocations: 3.938 kB / 335.8 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/2.37, allocations: 267.3 kB / 336 MB, free: 11.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.396e-06/2.37, allocations: 4 kB / 336 MB, free: 11.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007227/2.371, allocations: 273.2 kB / 336.3 MB, free: 11.42 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001684/2.371, allocations: 228.8 kB / 336.5 MB, free: 11.15 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/2.371, allocations: 158 kB / 336.7 MB, free: 11.01 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/2.372, allocations: 29.7 kB / 336.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/2.372, allocations: 122.5 kB / 336.8 MB, free: 10.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/2.372, allocations: 72.69 kB / 336.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.342e-05/2.372, allocations: 4 kB / 336.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/2.372, allocations: 336.2 kB / 337.2 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/2.372, allocations: 80.67 kB / 337.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/2.373, allocations: 186.2 kB / 337.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/2.373, allocations: 100.9 kB / 337.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/2.373, allocations: 0 / 337.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007478/2.374, allocations: 302.5 kB / 337.9 MB, free: 9.906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/2.374, allocations: 11.91 kB / 337.9 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/2.374, allocations: 4 kB / 337.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/2.374, allocations: 4 kB / 337.9 MB, free: 9.887 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/2.374, allocations: 47.47 kB / 338 MB, free: 9.844 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.376e-05/2.374, allocations: 4 kB / 338 MB, free: 9.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/2.375, allocations: 31.83 kB / 338 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/2.375, allocations: 15 kB / 338 MB, free: 9.797 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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,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 (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.0002899/2.375, allocations: 201.5 kB / 338.2 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.67e-05/2.375, allocations: 27.72 kB / 338.2 MB, free: 9.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.607e-05/2.375, allocations: 19.53 kB / 338.3 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/2.375, allocations: 0 / 338.3 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/2.375, allocations: 4 kB / 338.3 MB, free: 9.547 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/2.375, allocations: 11.92 kB / 338.3 MB, free: 9.535 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/2.377, allocations: 0.7511 MB / 339 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/2.377, allocations: 4 kB / 339 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/2.377, allocations: 31.86 kB / 339.1 MB, free: 8.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/2.377, allocations: 0 / 339.1 MB, free: 8.82 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/2.377, allocations: 7.062 kB / 339.1 MB, free: 8.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/2.377, allocations: 4 kB / 339.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/2.377, allocations: 0 / 339.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007938/2.378, allocations: 429.8 kB / 339.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009175/2.379, allocations: 0.7906 MB / 340.3 MB, free: 7.688 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/2.379, allocations: 126.5 kB / 340.4 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/2.379, allocations: 19.42 kB / 340.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/2.38, allocations: 23.98 kB / 340.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/2.38, allocations: 23.52 kB / 340.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/2.38, allocations: 8 kB / 340.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001727/2.38, allocations: 126.4 kB / 340.6 MB, free: 7.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002803/2.383, allocations: 71.83 kB / 340.7 MB, free: 7.312 MB / 282.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.000473/2.383, allocations: 132.5 kB / 340.8 MB, free: 7.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001362/2.385, allocations: 317.1 kB / 341.1 MB, free: 6.926 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/2.385, allocations: 0 / 341.1 MB, free: 6.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008366/2.386, allocations: 315.6 kB / 341.4 MB, free: 6.711 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/2.388, allocations: 118.8 kB / 341.5 MB, free: 6.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/2.39, allocations: 383.6 kB / 341.9 MB, free: 6.262 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007413/2.39, allocations: 0.7808 MB / 342.7 MB, free: 5.457 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/2.39, allocations: 0 / 342.7 MB, free: 5.457 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat