Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.689/1.689, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2245/1.913, allocations: 46.82 MB / 249.4 MB, free: 5.367 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/2.004, allocations: 44.52 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2785/2.282, allocations: 73.65 MB / 367.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/2.283, allocations: 71.05 kB / 367.6 MB, free: 7.047 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.027/2.31, allocations: 6.349 MB / 374 MB, free: 6.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/2.31, allocations: 7.562 kB / 374 MB, free: 6.152 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/2.31, allocations: 42.88 kB / 374 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/2.31, allocations: 271.6 kB / 374.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.947e-05/2.31, allocations: 68.75 kB / 374.4 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/2.31, allocations: 15.41 kB / 374.4 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006348/2.311, allocations: 184.8 kB / 374.6 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006763/2.312, allocations: 278.3 kB / 374.8 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/2.312, allocations: 0 / 374.8 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/2.312, allocations: 4.609 kB / 374.8 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/2.312, allocations: 7.75 kB / 374.8 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003161/2.315, allocations: 1.313 MB / 376.2 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/2.315, allocations: 98.02 kB / 376.3 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/2.316, allocations: 73.56 kB / 376.3 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/2.316, allocations: 3.875 kB / 376.3 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/2.316, allocations: 152.3 kB / 376.5 MB, free: 4.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 3.026e-06/2.316, allocations: 224 / 376.5 MB, free: 4.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008955/2.317, allocations: 216.8 kB / 376.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/2.317, allocations: 111.4 kB / 376.8 MB, free: 20.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/2.317, allocations: 192 kB / 377 MB, free: 20.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/2.317, allocations: 29.58 kB / 377 MB, free: 20.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/2.317, allocations: 186.7 kB / 377.2 MB, free: 20.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/2.317, allocations: 65.27 kB / 377.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.923e-05/2.317, allocations: 0 / 377.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/2.318, allocations: 337.5 kB / 377.6 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/2.318, allocations: 65.86 kB / 377.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/2.318, allocations: 141.2 kB / 377.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/2.318, allocations: 71.73 kB / 377.9 MB, free: 19.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/2.318, allocations: 3.781 kB / 377.9 MB, free: 19.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001016/2.319, allocations: 287.4 kB / 378.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/2.319, allocations: 11.66 kB / 378.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/2.319, allocations: 0.7969 kB / 378.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/2.32, allocations: 60.25 kB / 378.2 MB, free: 19.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007001/2.321, allocations: 58.06 kB / 378.3 MB, free: 19.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/2.323, allocations: 1.262 MB / 379.5 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008226/2.324, allocations: 39.42 kB / 379.6 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.145e-05/2.324, allocations: 12.05 kB / 379.6 MB, free: 18.61 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.0003386/2.324, allocations: 121.5 kB / 379.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/2.324, allocations: 27.28 kB / 379.7 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001296/2.325, allocations: 26.23 kB / 379.8 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/2.325, allocations: 3.875 kB / 379.8 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/2.325, allocations: 0 / 379.8 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/2.325, allocations: 1.594 kB / 379.8 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/2.325, allocations: 289.5 kB / 380.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/2.325, allocations: 0.6562 kB / 380.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005495/2.326, allocations: 44.52 kB / 380.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004916/2.327, allocations: 50.47 kB / 380.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/2.327, allocations: 1.875 kB / 380.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/2.329, allocations: 1.261 MB / 381.4 MB, free: 17.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/2.329, allocations: 4.688 kB / 381.4 MB, free: 17.07 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001438/2.33, allocations: 313.2 kB / 381.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001932/2.332, allocations: 0.7616 MB / 382.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/2.333, allocations: 113.1 kB / 382.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/2.333, allocations: 0.7969 kB / 382.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/2.333, allocations: 23.22 kB / 382.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/2.333, allocations: 16.75 kB / 382.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/2.333, allocations: 8.25 kB / 382.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002165/2.334, allocations: 151.3 kB / 382.8 MB, free: 16.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001431/2.335, allocations: 89.03 kB / 382.9 MB, free: 16.3 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.0001882/2.335, allocations: 114.8 kB / 383 MB, free: 16.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007562/2.336, allocations: 270.7 kB / 383.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/2.336, allocations: 0 / 383.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003901/2.337, allocations: 174.3 kB / 383.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/2.337, allocations: 21.06 kB / 383.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/2.339, allocations: 460.2 kB / 383.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006013/2.339, allocations: 0.8045 MB / 384.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.333e-06/2.339, allocations: 0 / 384.7 MB, free: 15.05 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat