Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.991/1.991, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2452/2.236, allocations: 46.82 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/2.331, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.321/2.652, allocations: 84.48 MB / 378.4 MB, free: 6.645 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/2.653, allocations: 81.2 kB / 378.5 MB, free: 6.633 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.08242/2.735, allocations: 15.97 MB / 394.4 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/2.735, allocations: 8.625 kB / 394.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000449/2.736, allocations: 83.75 kB / 394.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/2.737, allocations: 0.4887 MB / 395 MB, free: 488 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/2.737, allocations: 56.33 kB / 395.1 MB, free: 452 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003828/2.738, allocations: 43.05 kB / 395.1 MB, free: 448 kB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001666/2.739, allocations: 445.7 kB / 395.6 MB, free: 420 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/2.741, allocations: 0.4938 MB / 396 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/2.741, allocations: 1.375 kB / 396 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.492e-05/2.741, allocations: 0 / 396 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/2.741, allocations: 17.75 kB / 396.1 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007366/2.749, allocations: 2.248 MB / 398.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009446/2.75, allocations: 289.8 kB / 398.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007544/2.75, allocations: 229 kB / 398.8 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-05/2.75, allocations: 7.609 kB / 398.8 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.806e-05/2.75, allocations: 37.81 kB / 398.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.116e-06/2.751, allocations: 0 / 398.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.02111/2.772, allocations: 2.538 MB / 401.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.003e-05/2.772, allocations: 87.52 kB / 401.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/2.773, allocations: 431.9 kB / 401.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/2.773, allocations: 27.23 kB / 401.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/2.773, allocations: 254.3 kB / 402.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002905/2.774, allocations: 199.8 kB / 402.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.609e-05/2.774, allocations: 7.5 kB / 402.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/2.774, allocations: 367.9 kB / 402.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007767/2.775, allocations: 211.6 kB / 403 MB, free: 13.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008575/2.776, allocations: 297.6 kB / 403.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009115/2.777, allocations: 249 kB / 403.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/2.777, allocations: 1.156 kB / 403.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01749/2.794, allocations: 1.738 MB / 405.2 MB, free: 12.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/2.794, allocations: 8.391 kB / 405.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/2.794, allocations: 11.12 kB / 405.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01571/2.81, allocations: 1.161 MB / 406.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/2.811, allocations: 95.81 kB / 406.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02728/2.838, allocations: 5.52 MB / 412 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/2.84, allocations: 43.88 kB / 412.1 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/2.84, allocations: 23.61 kB / 412.1 MB, free: 7.863 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" 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: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.000317/2.84, allocations: 120.2 kB / 412.2 MB, free: 7.742 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/2.84, allocations: 55.34 kB / 412.3 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/2.843, allocations: 0.7077 MB / 413 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/2.843, allocations: 4 kB / 413 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/2.843, allocations: 4 kB / 413 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/2.843, allocations: 3.984 kB / 413 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00695/2.85, allocations: 1.714 MB / 414.7 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/2.85, allocations: 0 / 414.7 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/2.852, allocations: 115.1 kB / 414.8 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003717/2.855, allocations: 334.2 kB / 415.1 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/2.856, allocations: 7.891 kB / 415.1 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008728/2.864, allocations: 2.653 MB / 417.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/2.864, allocations: 4 kB / 417.8 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005045/2.869, allocations: 1.237 MB / 419 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006204/2.876, allocations: 1.926 MB / 421 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006683/2.876, allocations: 204.4 kB / 421.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/2.877, allocations: 4 kB / 421.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/2.878, allocations: 39.97 kB / 421.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/2.878, allocations: 40.58 kB / 421.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.855e-05/2.878, allocations: 27.92 kB / 421.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008044/2.879, allocations: 339.2 kB / 421.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002634/2.882, allocations: 184 kB / 421.8 MB, free: 15.1 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004981/2.882, allocations: 151 kB / 421.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002552/2.885, allocations: 0.6961 MB / 422.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/2.885, allocations: 0 / 422.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/2.886, allocations: 436.8 kB / 423 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009503/2.887, allocations: 58.05 kB / 423.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/2.892, allocations: 1.103 MB / 424.2 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/2.893, allocations: 0.9688 MB / 425.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of SimCode: time 4.468e-06/2.893, allocations: 0 / 425.2 MB, free: 11.63 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat