Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.654/1.654, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.207/1.861, allocations: 46.82 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/1.955, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2876/2.243, allocations: 73.09 MB / 367 MB, free: 7.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/2.243, allocations: 69.28 kB / 367.1 MB, free: 7.07 MB / 298.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.02789/2.271, allocations: 7.448 MB / 374.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/2.271, allocations: 7.781 kB / 374.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.805e-05/2.272, allocations: 31.8 kB / 374.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/2.272, allocations: 253.7 kB / 374.8 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.072e-05/2.272, allocations: 45.48 kB / 374.8 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/2.272, allocations: 15.53 kB / 374.9 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004346/2.273, allocations: 160.1 kB / 375 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/2.273, allocations: 212.5 kB / 375.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/2.273, allocations: 0 / 375.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/2.273, allocations: 0 / 375.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/2.273, allocations: 3.875 kB / 375.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/2.275, allocations: 0.7355 MB / 376 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004728/2.276, allocations: 241.7 kB / 376.2 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/2.276, allocations: 199.7 kB / 376.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/2.276, allocations: 0 / 376.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004038/2.277, allocations: 274.8 kB / 376.7 MB, free: 5.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.935e-06/2.277, allocations: 0 / 376.7 MB, free: 5.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006228/2.277, allocations: 265.7 kB / 376.9 MB, free: 5.266 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/2.277, allocations: 232.6 kB / 377.1 MB, free: 5.012 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/2.277, allocations: 153.5 kB / 377.3 MB, free: 4.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/2.278, allocations: 34.89 kB / 377.3 MB, free: 4.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.216e-05/2.278, allocations: 122.5 kB / 377.5 MB, free: 20.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.041e-05/2.278, allocations: 80.42 kB / 377.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/2.278, allocations: 0 / 377.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/2.278, allocations: 333.9 kB / 377.9 MB, free: 20.42 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/2.278, allocations: 82.55 kB / 377.9 MB, free: 20.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/2.278, allocations: 188.3 kB / 378.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/2.279, allocations: 113.4 kB / 378.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/2.279, allocations: 0 / 378.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007073/2.279, allocations: 288 kB / 378.5 MB, free: 20.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/2.28, allocations: 8.469 kB / 378.5 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/2.28, allocations: 3.844 kB / 378.5 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/2.28, allocations: 3.938 kB / 378.5 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/2.28, allocations: 49.3 kB / 378.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/2.28, allocations: 8.625 kB / 378.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/2.28, allocations: 28.05 kB / 378.6 MB, free: 20.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/2.28, allocations: 11.72 kB / 378.6 MB, free: 20.2 MB / 314.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.0002773/2.281, allocations: 204.4 kB / 378.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.53e-05/2.281, allocations: 27.58 kB / 378.8 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.635e-05/2.281, allocations: 23.75 kB / 378.9 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/2.281, allocations: 3.875 kB / 378.9 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.281, allocations: 0 / 378.9 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.485e-06/2.281, allocations: 5.266 kB / 378.9 MB, free: 19.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/2.282, allocations: 0.7559 MB / 379.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/2.282, allocations: 3.938 kB / 379.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/2.283, allocations: 27.67 kB / 379.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/2.283, allocations: 0 / 379.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/2.283, allocations: 9.609 kB / 379.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/2.283, allocations: 4.031 kB / 379.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/2.283, allocations: 0.7031 kB / 379.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007154/2.283, allocations: 428.5 kB / 380.1 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008354/2.284, allocations: 0.7916 MB / 380.9 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/2.284, allocations: 101.6 kB / 381 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/2.284, allocations: 14.42 kB / 381 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/2.285, allocations: 24.58 kB / 381 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/2.285, allocations: 29.08 kB / 381.1 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/2.285, allocations: 9.766 kB / 381.1 MB, free: 18.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001355/2.285, allocations: 122.3 kB / 381.2 MB, free: 18.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001396/2.287, allocations: 66.42 kB / 381.3 MB, free: 18.69 MB / 314.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.0002242/2.287, allocations: 144.4 kB / 381.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006678/2.288, allocations: 322.2 kB / 381.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/2.288, allocations: 0 / 381.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004722/2.288, allocations: 317.3 kB / 382 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/2.289, allocations: 124.5 kB / 382.1 MB, free: 18.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/2.29, allocations: 365.8 kB / 382.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/2.291, allocations: 0.7753 MB / 383.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of SimCode: time 1.103e-06/2.291, allocations: 4 kB / 383.3 MB, free: 17.46 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat