Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.362e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2611, allocations: 38.78 MB / 263.9 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.139/0.4002, allocations: 69.74 MB / 333.6 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.4005, allocations: 75.94 kB / 333.7 MB, free: 3.707 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03985/0.4404, allocations: 8.179 MB / 341.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4404, allocations: 0 / 341.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.552e-05/0.4405, allocations: 12 kB / 341.9 MB, free: 11.47 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002106/0.4426, allocations: 0.7282 MB / 342.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.4427, allocations: 8.031 kB / 342.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002782/0.443, allocations: 103.6 kB / 342.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.4432, allocations: 67.25 kB / 342.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009132/0.4442, allocations: 359.5 kB / 343.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.963e-05/0.4443, allocations: 41.31 kB / 343.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.4444, allocations: 59.89 kB / 343.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.4458, allocations: 473.1 kB / 343.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.4458, allocations: 0 / 343.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.729e-05/0.4459, allocations: 24 kB / 343.7 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.446, allocations: 15.94 kB / 343.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.447, allocations: 302.6 kB / 344 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005316/0.4523, allocations: 1.749 MB / 345.8 MB, free: 7.359 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/0.4532, allocations: 249.1 kB / 346 MB, free: 7.098 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.4536, allocations: 137.9 kB / 346.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.4536, allocations: 7.938 kB / 346.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/0.4537, allocations: 42.55 kB / 346.2 MB, free: 6.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.216e-06/0.4537, allocations: 0 / 346.2 MB, free: 6.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002598/0.4563, allocations: 0.7525 MB / 346.9 MB, free: 6.086 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.4564, allocations: 81.11 kB / 347 MB, free: 5.988 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.4571, allocations: 343.4 kB / 347.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.93e-05/0.4572, allocations: 33.7 kB / 347.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.4575, allocations: 337.9 kB / 347.7 MB, free: 5.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.4576, allocations: 122.3 kB / 347.8 MB, free: 5.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.4577, allocations: 8 kB / 347.8 MB, free: 5.145 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4578, allocations: 326.8 kB / 348.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.4582, allocations: 88.88 kB / 348.3 MB, free: 4.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.4585, allocations: 181.9 kB / 348.4 MB, free: 4.512 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.4589, allocations: 108.1 kB / 348.5 MB, free: 4.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4589, allocations: 4 kB / 348.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001276/0.4602, allocations: 394.4 kB / 348.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.4603, allocations: 4 kB / 348.9 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.4603, allocations: 4 kB / 348.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005468/0.4609, allocations: 85.75 kB / 349 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/0.4615, allocations: 79.84 kB / 349.1 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003669/0.4652, allocations: 2.842 MB / 351.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005889/0.4659, allocations: 23.84 kB / 352 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.4659, allocations: 16 kB / 352 MB, free: 0.6914 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001889/0.4661, allocations: 132.9 kB / 352.1 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.4663, allocations: 39.53 kB / 352.1 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.4664, allocations: 47.28 kB / 352.2 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.4664, allocations: 4 kB / 352.2 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.4665, allocations: 4 kB / 352.2 MB, free: 476 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.4665, allocations: 3.953 kB / 352.2 MB, free: 472 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.4688, allocations: 0.9263 MB / 353.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.4689, allocations: 192 / 353.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.4693, allocations: 47.98 kB / 353.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/0.4698, allocations: 93.47 kB / 353.3 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.556e-05/0.4698, allocations: 11.94 kB / 353.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003564/0.4734, allocations: 2.849 MB / 356.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.4735, allocations: 3.938 kB / 356.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.475, allocations: 0.5876 MB / 356.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003609/0.4754, allocations: 132.6 kB / 356.9 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.4755, allocations: 12 kB / 356.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.4762, allocations: 35.98 kB / 356.9 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.4763, allocations: 27.91 kB / 356.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.4763, allocations: 8 kB / 356.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005419/0.4769, allocations: 270.2 kB / 357.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4769, allocations: 3.938 kB / 357.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001314/0.4782, allocations: 120 kB / 357.3 MB, free: 10.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001943/0.4802, allocations: 1.205 MB / 358.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.4816, allocations: 483.7 kB / 359 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.4816, allocations: 0 / 359 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009051/0.4825, allocations: 360 kB / 359.3 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007718/0.4833, allocations: 57.27 kB / 359.4 MB, free: 8.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.4865, allocations: 0.863 MB / 360.3 MB, free: 7.879 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005807/0.4871, allocations: 0.8587 MB / 361.1 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004425/0.4876, allocations: 175.4 kB / 361.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4876, allocations: 0 / 361.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/3.304, allocations: 10.82 MB / 372.1 MB, free: 90.92 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat