Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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 2.09/2.09, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2646/2.354, allocations: 46.84 MB / 249.3 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/2.446, allocations: 44.51 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2811/2.727, allocations: 73.67 MB / 367.5 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/2.727, allocations: 65.17 kB / 367.6 MB, free: 7.129 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.02645/2.753, allocations: 6.345 MB / 373.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/2.754, allocations: 7.781 kB / 373.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/2.754, allocations: 43.52 kB / 374 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/2.754, allocations: 265.5 kB / 374.2 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.387e-05/2.754, allocations: 64.53 kB / 374.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/2.754, allocations: 20.03 kB / 374.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005881/2.755, allocations: 181.8 kB / 374.5 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/2.756, allocations: 282.4 kB / 374.8 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/2.756, allocations: 0 / 374.8 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.63e-05/2.756, allocations: 0.8438 kB / 374.8 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/2.756, allocations: 19.53 kB / 374.8 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00297/2.759, allocations: 1.314 MB / 376.1 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/2.759, allocations: 98.44 kB / 376.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/2.759, allocations: 75.19 kB / 376.3 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/2.759, allocations: 4.578 kB / 376.3 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/2.76, allocations: 143.2 kB / 376.4 MB, free: 4.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.485e-06/2.76, allocations: 224 / 376.4 MB, free: 4.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008793/2.76, allocations: 208.3 kB / 376.6 MB, free: 4.895 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/2.761, allocations: 111.2 kB / 376.7 MB, free: 4.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/2.761, allocations: 191.5 kB / 376.9 MB, free: 20.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/2.761, allocations: 29.64 kB / 376.9 MB, free: 20.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/2.761, allocations: 188.5 kB / 377.1 MB, free: 20.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/2.761, allocations: 67.62 kB / 377.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/2.761, allocations: 0 / 377.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/2.761, allocations: 336.1 kB / 377.5 MB, free: 20.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/2.762, allocations: 61.31 kB / 377.6 MB, free: 20.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/2.762, allocations: 148.2 kB / 377.7 MB, free: 20.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/2.762, allocations: 65.77 kB / 377.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/2.762, allocations: 3.906 kB / 377.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001011/2.763, allocations: 293 kB / 378.1 MB, free: 19.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/2.763, allocations: 11.75 kB / 378.1 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/2.763, allocations: 0 / 378.1 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/2.764, allocations: 61.38 kB / 378.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/2.764, allocations: 57.83 kB / 378.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/2.766, allocations: 1.266 MB / 379.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/2.766, allocations: 43.23 kB / 379.5 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/2.766, allocations: 12 kB / 379.5 MB, free: 18.7 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: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.0002286/2.767, allocations: 117.1 kB / 379.6 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/2.767, allocations: 28.05 kB / 379.7 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.941e-05/2.767, allocations: 25.42 kB / 379.7 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/2.767, allocations: 4.406 kB / 379.7 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/2.767, allocations: 0 / 379.7 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/2.767, allocations: 1.594 kB / 379.7 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004801/2.767, allocations: 289.5 kB / 380 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/2.767, allocations: 0 / 380 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000402/2.768, allocations: 44.34 kB / 380 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003205/2.768, allocations: 49.78 kB / 380.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/2.768, allocations: 4.453 kB / 380.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/2.77, allocations: 1.255 MB / 381.3 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/2.77, allocations: 4.641 kB / 381.3 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001047/2.771, allocations: 321.8 kB / 381.7 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001326/2.772, allocations: 0.7629 MB / 382.4 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002291/2.772, allocations: 110.8 kB / 382.5 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.207e-05/2.772, allocations: 0 / 382.5 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/2.773, allocations: 24.14 kB / 382.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/2.773, allocations: 21.17 kB / 382.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/2.773, allocations: 3.969 kB / 382.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002289/2.773, allocations: 154.1 kB / 382.7 MB, free: 16.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00145/2.775, allocations: 90.73 kB / 382.8 MB, free: 16.38 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002526/2.775, allocations: 107.6 kB / 382.9 MB, free: 16.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00082/2.776, allocations: 264.6 kB / 383.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/2.776, allocations: 0 / 383.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/2.776, allocations: 177 kB / 383.4 MB, free: 16.08 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/2.777, allocations: 27.92 kB / 383.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/2.779, allocations: 451.7 kB / 383.8 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/2.779, allocations: 0.8041 MB / 384.6 MB, free: 15.14 MB / 314.7 MB Notification: Performance of SimCode: time 1.422e-06/2.779, allocations: 0 / 384.6 MB, free: 15.14 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat