Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",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.772/1.772, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2534/2.025, allocations: 46.85 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/2.115, allocations: 44.49 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/2.401, allocations: 79.05 MB / 372.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/2.402, allocations: 85.92 kB / 373 MB, free: 7.109 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.05904/2.461, allocations: 15.49 MB / 388.5 MB, free: 1.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/2.461, allocations: 7.75 kB / 388.5 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004863/2.461, allocations: 115.8 kB / 388.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/2.463, allocations: 0.6296 MB / 389.2 MB, free: 1.496 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/2.463, allocations: 30.5 kB / 389.3 MB, free: 1.492 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/2.463, allocations: 64.77 kB / 389.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002161/2.466, allocations: 0.6117 MB / 389.9 MB, free: 1.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/2.468, allocations: 0.7871 MB / 390.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.909e-05/2.468, allocations: 0 / 390.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/2.468, allocations: 3.984 kB / 390.7 MB, free: 1.203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/2.468, allocations: 23.28 kB / 390.8 MB, free: 1.203 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008405/2.477, allocations: 3.528 MB / 394.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/2.479, allocations: 0.635 MB / 394.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/2.48, allocations: 412.8 kB / 395.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.987e-05/2.48, allocations: 8.625 kB / 395.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/2.482, allocations: 393.2 kB / 395.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 4.368e-06/2.482, allocations: 0 / 395.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002777/2.484, allocations: 0.7643 MB / 396.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/2.485, allocations: 116.8 kB / 396.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/2.486, allocations: 437.8 kB / 397 MB, free: 14.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002145/2.486, allocations: 27.05 kB / 397 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/2.486, allocations: 300.6 kB / 397.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004133/2.487, allocations: 228.2 kB / 397.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/2.487, allocations: 1.312 kB / 397.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002646/2.487, allocations: 378.9 kB / 397.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007404/2.488, allocations: 224 kB / 398.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00088/2.489, allocations: 367.3 kB / 398.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007533/2.489, allocations: 235.4 kB / 398.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/2.489, allocations: 1.844 kB / 398.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002576/2.492, allocations: 0.7854 MB / 399.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000682/2.493, allocations: 1.313 MB / 400.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/2.493, allocations: 4.438 kB / 400.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/2.495, allocations: 309 kB / 401.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/2.496, allocations: 101.6 kB / 401.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008201/2.504, allocations: 3.184 MB / 404.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/2.505, allocations: 71.03 kB / 404.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/2.505, allocations: 34.11 kB / 404.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/2.505, allocations: 4.062 kB / 404.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002199/2.507, allocations: 0.6859 MB / 405.2 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/2.508, allocations: 3.406 kB / 405.2 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/2.509, allocations: 312.4 kB / 405.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008125/2.51, allocations: 88.86 kB / 405.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008183/2.518, allocations: 3.184 MB / 408.8 MB, free: 8.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/2.519, allocations: 56.52 kB / 408.9 MB, free: 8.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/2.52, allocations: 31.31 kB / 408.9 MB, free: 8.762 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003715/2.52, allocations: 136.6 kB / 409 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/2.52, allocations: 68.91 kB / 409.1 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003552/2.521, allocations: 79.48 kB / 409.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/2.521, allocations: 12.06 kB / 409.2 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/2.521, allocations: 4.969 kB / 409.2 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/2.521, allocations: 3.984 kB / 409.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0054/2.526, allocations: 1.712 MB / 410.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/2.526, allocations: 0 / 410.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/2.527, allocations: 67.3 kB / 411 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/2.529, allocations: 302 kB / 411.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/2.529, allocations: 1.156 kB / 411.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008558/2.537, allocations: 3.177 MB / 414.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/2.538, allocations: 7.891 kB / 414.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00379/2.541, allocations: 1.209 MB / 415.7 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005032/2.546, allocations: 1.955 MB / 417.6 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/2.547, allocations: 240 kB / 417.8 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002289/2.548, allocations: 7.938 kB / 417.9 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000902/2.548, allocations: 28.09 kB / 417.9 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002932/2.549, allocations: 72.55 kB / 417.9 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-05/2.549, allocations: 16 kB / 418 MB, free: 1.543 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0007357/2.55, allocations: 319 kB / 418.3 MB, free: 1.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003991/2.554, allocations: 398.8 kB / 418.7 MB, free: 0.8438 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.000437/2.554, allocations: 142.2 kB / 418.8 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005074/2.559, allocations: 1.431 MB / 420.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/2.559, allocations: 4.875 kB / 420.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/2.561, allocations: 0.5342 MB / 420.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/2.563, allocations: 106 kB / 420.9 MB, free: 14.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00584/2.569, allocations: 1.172 MB / 422 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/2.57, allocations: 1.034 MB / 423.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.593e-06/2.57, allocations: 0 / 423.1 MB, free: 12.32 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat