Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.677/1.677, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2339/1.911, allocations: 46.83 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/2, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2723/2.273, allocations: 73.02 MB / 366.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/2.273, allocations: 71.33 kB / 367 MB, free: 7.121 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.02327/2.296, allocations: 5.648 MB / 372.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/2.296, allocations: 7.781 kB / 372.7 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/2.296, allocations: 39.7 kB / 372.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/2.297, allocations: 247 kB / 372.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.582e-05/2.297, allocations: 68.39 kB / 373 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.038e-05/2.297, allocations: 20.03 kB / 373 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005082/2.297, allocations: 161.6 kB / 373.2 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005978/2.298, allocations: 245.8 kB / 373.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/2.298, allocations: 0.7969 kB / 373.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/2.298, allocations: 0 / 373.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/2.298, allocations: 15.44 kB / 373.4 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/2.3, allocations: 1.07 MB / 374.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/2.301, allocations: 89.73 kB / 374.6 MB, free: 5.301 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/2.301, allocations: 80.02 kB / 374.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/2.301, allocations: 0 / 374.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/2.301, allocations: 144.6 kB / 374.8 MB, free: 5.199 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.084e-06/2.301, allocations: 4.156 kB / 374.8 MB, free: 5.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.000837/2.302, allocations: 200 kB / 375 MB, free: 5.145 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/2.302, allocations: 115 kB / 375.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/2.302, allocations: 162.7 kB / 375.3 MB, free: 4.918 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/2.303, allocations: 26.22 kB / 375.3 MB, free: 4.887 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.573e-05/2.303, allocations: 167.6 kB / 375.5 MB, free: 4.758 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.375e-05/2.303, allocations: 65.3 kB / 375.5 MB, free: 4.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.707e-05/2.303, allocations: 0 / 375.5 MB, free: 4.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/2.303, allocations: 336.3 kB / 375.9 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/2.303, allocations: 58.12 kB / 375.9 MB, free: 20.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/2.303, allocations: 114.2 kB / 376 MB, free: 20.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/2.303, allocations: 66.05 kB / 376.1 MB, free: 20.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.303, allocations: 0 / 376.1 MB, free: 20.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006186/2.304, allocations: 226.6 kB / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/2.304, allocations: 7.719 kB / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/2.304, allocations: 0 / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003993/2.305, allocations: 58.89 kB / 376.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/2.305, allocations: 52.19 kB / 376.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/2.306, allocations: 1.258 MB / 377.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/2.307, allocations: 35.45 kB / 377.7 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/2.307, allocations: 12.59 kB / 377.7 MB, free: 19.02 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001849/2.307, allocations: 121.1 kB / 377.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/2.307, allocations: 20.08 kB / 377.9 MB, free: 18.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/2.307, allocations: 23.47 kB / 377.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/2.307, allocations: 7.844 kB / 377.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/2.307, allocations: 0.5156 kB / 377.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/2.307, allocations: 5.297 kB / 377.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004132/2.308, allocations: 268.1 kB / 378.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/2.308, allocations: 0 / 378.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/2.308, allocations: 39.25 kB / 378.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003084/2.308, allocations: 50.45 kB / 378.3 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/2.309, allocations: 5.75 kB / 378.3 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/2.31, allocations: 1.251 MB / 379.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/2.31, allocations: 4.672 kB / 379.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009343/2.311, allocations: 307.2 kB / 379.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001247/2.312, allocations: 0.746 MB / 380.6 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/2.312, allocations: 105.7 kB / 380.7 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.355e-05/2.312, allocations: 3.359 kB / 380.7 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/2.313, allocations: 23.39 kB / 380.7 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.295e-05/2.313, allocations: 21.11 kB / 380.7 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/2.313, allocations: 5.281 kB / 380.7 MB, free: 16.81 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001592/2.313, allocations: 135.6 kB / 380.9 MB, free: 16.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001416/2.314, allocations: 74.06 kB / 380.9 MB, free: 16.72 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001832/2.315, allocations: 112.2 kB / 381 MB, free: 16.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006711/2.315, allocations: 250.7 kB / 381.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/2.315, allocations: 0 / 381.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003769/2.316, allocations: 177.4 kB / 381.5 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/2.316, allocations: 30.92 kB / 381.5 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/2.318, allocations: 490.4 kB / 382 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/2.319, allocations: 0.7906 MB / 382.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/2.319, allocations: 0 / 382.8 MB, free: 15.47 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat