Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_1_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 1.802/1.802, allocations: 171.2 MB / 178.1 MB, free: 8.328 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2113/2.013, allocations: 41.1 MB / 219.3 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/2.114, allocations: 38.76 MB / 258 MB, free: 4.387 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/2.418, allocations: 68.94 MB / 326.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/2.419, allocations: 70.64 kB / 327 MB, free: 3.059 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.03342/2.452, allocations: 6.283 MB / 333.3 MB, free: 13.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.3e-05/2.452, allocations: 8 kB / 333.3 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/2.452, allocations: 39.72 kB / 333.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009252/2.453, allocations: 267.2 kB / 333.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/2.454, allocations: 72.05 kB / 333.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/2.454, allocations: 19.94 kB / 333.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000894/2.455, allocations: 180 kB / 333.9 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/2.456, allocations: 269.3 kB / 334.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/2.456, allocations: 7.906 kB / 334.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/2.456, allocations: 0 / 334.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/2.456, allocations: 8 kB / 334.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/2.46, allocations: 1.343 MB / 335.5 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/2.461, allocations: 89.64 kB / 335.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/2.461, allocations: 79.67 kB / 335.7 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/2.461, allocations: 3.906 kB / 335.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/2.461, allocations: 134.1 kB / 335.8 MB, free: 11.44 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 2.865e-06/2.461, allocations: 0 / 335.8 MB, free: 11.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009105/2.462, allocations: 206.9 kB / 336 MB, free: 11.26 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.64e-05/2.462, allocations: 106.8 kB / 336.1 MB, free: 11.13 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/2.463, allocations: 195.3 kB / 336.3 MB, free: 10.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/2.463, allocations: 28.89 kB / 336.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/2.463, allocations: 187 kB / 336.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/2.463, allocations: 57.67 kB / 336.6 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/2.463, allocations: 0 / 336.6 MB, free: 10.71 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/2.463, allocations: 338.2 kB / 336.9 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/2.463, allocations: 59.19 kB / 336.9 MB, free: 10.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/2.464, allocations: 140.7 kB / 337.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/2.464, allocations: 77.06 kB / 337.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/2.464, allocations: 0 / 337.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007606/2.465, allocations: 248 kB / 337.4 MB, free: 9.945 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/2.465, allocations: 11.98 kB / 337.4 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/2.465, allocations: 0 / 337.4 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004196/2.465, allocations: 59.36 kB / 337.5 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006525/2.466, allocations: 95.34 kB / 337.6 MB, free: 9.793 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/2.468, allocations: 1.255 MB / 338.8 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/2.468, allocations: 43.67 kB / 338.9 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/2.468, allocations: 15.03 kB / 338.9 MB, free: 8.414 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "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: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0002042/2.468, allocations: 120.8 kB / 339 MB, free: 8.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.216e-05/2.469, allocations: 23.72 kB / 339 MB, free: 8.266 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.505e-05/2.469, allocations: 28.84 kB / 339 MB, free: 8.254 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/2.469, allocations: 4 kB / 339 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.469, allocations: 3.906 kB / 339.1 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/2.469, allocations: 3.984 kB / 339.1 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/2.469, allocations: 285.2 kB / 339.3 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/2.469, allocations: 4 kB / 339.3 MB, free: 7.973 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/2.47, allocations: 67.95 kB / 339.4 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003252/2.47, allocations: 50.5 kB / 339.5 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/2.47, allocations: 0 / 339.5 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/2.472, allocations: 1.248 MB / 340.7 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/2.472, allocations: 4.062 kB / 340.7 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001132/2.473, allocations: 307.6 kB / 341 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001359/2.474, allocations: 0.7472 MB / 341.8 MB, free: 5.621 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/2.475, allocations: 112.5 kB / 341.9 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/2.475, allocations: 3.906 kB / 341.9 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/2.475, allocations: 28.05 kB / 341.9 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/2.475, allocations: 15.95 kB / 341.9 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/2.475, allocations: 7.984 kB / 341.9 MB, free: 5.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0002441/2.475, allocations: 147.8 kB / 342.1 MB, free: 5.328 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001503/2.477, allocations: 87.67 kB / 342.1 MB, free: 5.242 MB / 282.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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0002265/2.477, allocations: 110.5 kB / 342.3 MB, free: 5.129 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008492/2.478, allocations: 271.8 kB / 342.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/2.478, allocations: 0 / 342.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003962/2.478, allocations: 168 kB / 342.7 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/2.479, allocations: 26.61 kB / 342.7 MB, free: 4.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/2.481, allocations: 465.2 kB / 343.2 MB, free: 4.285 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005655/2.482, allocations: 0.8097 MB / 344 MB, free: 3.453 MB / 282.7 MB Notification: Performance of SimCode: time 1.683e-06/2.482, allocations: 0 / 344 MB, free: 3.453 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat