Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.88/1.88, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2381/2.118, allocations: 46.84 MB / 249.3 MB, free: 5.367 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/2.209, allocations: 44.5 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2834/2.492, allocations: 73.02 MB / 366.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/2.492, allocations: 70.39 kB / 366.9 MB, free: 7.133 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.0225/2.515, allocations: 5.641 MB / 372.6 MB, free: 6.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/2.515, allocations: 11.75 kB / 372.6 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/2.515, allocations: 31.52 kB / 372.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003711/2.515, allocations: 251.8 kB / 372.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.061e-05/2.516, allocations: 72.8 kB / 372.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/2.516, allocations: 15.66 kB / 373 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005022/2.516, allocations: 167.2 kB / 373.1 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005857/2.517, allocations: 250.1 kB / 373.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/2.517, allocations: 0 / 373.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/2.517, allocations: 0.5625 kB / 373.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/2.517, allocations: 11.62 kB / 373.4 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/2.519, allocations: 1.071 MB / 374.4 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/2.52, allocations: 88.97 kB / 374.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/2.52, allocations: 76.36 kB / 374.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/2.52, allocations: 3.875 kB / 374.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/2.52, allocations: 140.5 kB / 374.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.835e-06/2.52, allocations: 224 / 374.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008177/2.521, allocations: 201.4 kB / 374.9 MB, free: 5.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/2.521, allocations: 107.4 kB / 375 MB, free: 5.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/2.521, allocations: 163.8 kB / 375.2 MB, free: 4.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/2.521, allocations: 30.06 kB / 375.2 MB, free: 4.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/2.522, allocations: 175.1 kB / 375.4 MB, free: 20.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.795e-05/2.522, allocations: 57.31 kB / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.707e-05/2.522, allocations: 0 / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/2.522, allocations: 336.4 kB / 375.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/2.522, allocations: 58.91 kB / 375.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/2.522, allocations: 112.6 kB / 376 MB, free: 20.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/2.522, allocations: 62.33 kB / 376 MB, free: 20.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/2.522, allocations: 0 / 376 MB, free: 20.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006078/2.523, allocations: 234.8 kB / 376.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/2.523, allocations: 10.28 kB / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/2.523, allocations: 0 / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004033/2.524, allocations: 54.44 kB / 376.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/2.524, allocations: 56.14 kB / 376.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/2.525, allocations: 1.258 MB / 377.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/2.526, allocations: 31.23 kB / 377.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/2.526, allocations: 16.83 kB / 377.7 MB, free: 19.03 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.0002221/2.526, allocations: 120.7 kB / 377.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/2.526, allocations: 15.56 kB / 377.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.764e-05/2.526, allocations: 27.86 kB / 377.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/2.526, allocations: 3.969 kB / 377.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/2.526, allocations: 0 / 377.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/2.526, allocations: 1.969 kB / 377.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/2.527, allocations: 267.3 kB / 378.1 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/2.527, allocations: 7.875 kB / 378.1 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/2.527, allocations: 28.03 kB / 378.1 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003224/2.528, allocations: 61.92 kB / 378.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/2.528, allocations: 1.922 kB / 378.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/2.529, allocations: 1.254 MB / 379.4 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/2.529, allocations: 1.188 kB / 379.5 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009989/2.53, allocations: 305.2 kB / 379.7 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001181/2.532, allocations: 0.7586 MB / 380.5 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/2.532, allocations: 106 kB / 380.6 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.103e-05/2.532, allocations: 4.578 kB / 380.6 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/2.532, allocations: 19.98 kB / 380.6 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/2.532, allocations: 20.91 kB / 380.7 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/2.532, allocations: 9.391 kB / 380.7 MB, free: 16.81 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001541/2.532, allocations: 143.6 kB / 380.8 MB, free: 16.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001382/2.534, allocations: 74.38 kB / 380.9 MB, free: 16.71 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.0002079/2.534, allocations: 100.7 kB / 381 MB, free: 16.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006917/2.535, allocations: 253.9 kB / 381.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.535, allocations: 0 / 381.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003605/2.535, allocations: 182 kB / 381.4 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.0003363/2.535, allocations: 26.8 kB / 381.4 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/2.538, allocations: 480.4 kB / 381.9 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004831/2.538, allocations: 0.7908 MB / 382.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/2.538, allocations: 0 / 382.7 MB, free: 15.47 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat