Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.289e-05, allocations: 4 kB / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09867, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.402/0.5007, allocations: 76.87 MB / 393.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.501, allocations: 66.95 kB / 393.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02367/0.5247, allocations: 5.408 MB / 399.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.149e-06/0.5248, allocations: 3.984 kB / 399.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.628e-05/0.5248, allocations: 8 kB / 399.4 MB, free: 6.176 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001355/0.5262, allocations: 0.5901 MB / 400 MB, free: 5.566 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.5262, allocations: 11.97 kB / 400 MB, free: 5.555 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.5264, allocations: 79.47 kB / 400 MB, free: 5.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.5265, allocations: 45.81 kB / 400.1 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.527, allocations: 281.1 kB / 400.4 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.527, allocations: 32.73 kB / 400.4 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.5271, allocations: 52.42 kB / 400.4 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.5282, allocations: 417.7 kB / 400.9 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.5282, allocations: 0 / 400.9 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.5283, allocations: 21.92 kB / 400.9 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.5283, allocations: 12 kB / 400.9 MB, free: 4.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007353/0.5291, allocations: 257.3 kB / 401.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.5321, allocations: 1.323 MB / 402.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005989/0.5327, allocations: 228.3 kB / 402.7 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.5332, allocations: 193.8 kB / 402.9 MB, free: 3.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.5333, allocations: 4 kB / 402.9 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.5333, allocations: 42.39 kB / 402.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 5.43e-06/0.5333, allocations: 0 / 402.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009166/0.5343, allocations: 283.6 kB / 403.2 MB, free: 2.898 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.5344, allocations: 235.3 kB / 403.4 MB, free: 2.613 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.5347, allocations: 183.9 kB / 403.6 MB, free: 2.453 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.5347, allocations: 33.52 kB / 403.6 MB, free: 2.418 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.5349, allocations: 202.4 kB / 403.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.535, allocations: 97.38 kB / 403.9 MB, free: 2.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.535, allocations: 7.312 kB / 403.9 MB, free: 2.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.5352, allocations: 330.1 kB / 404.3 MB, free: 1.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.5354, allocations: 70.75 kB / 404.3 MB, free: 1.793 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.5357, allocations: 139.4 kB / 404.5 MB, free: 1.652 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.536, allocations: 91.12 kB / 404.6 MB, free: 1.594 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.536, allocations: 0 / 404.6 MB, free: 1.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006326/0.5366, allocations: 261.7 kB / 404.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.5367, allocations: 8 kB / 404.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.5367, allocations: 4.062 kB / 404.8 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.5367, allocations: 4 kB / 404.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/0.5374, allocations: 79.7 kB / 404.9 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.5374, allocations: 4.078 kB / 404.9 MB, free: 1.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.5377, allocations: 39.53 kB / 404.9 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.5378, allocations: 15.92 kB / 405 MB, free: 1.25 MB / 314.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.538, allocations: 124.5 kB / 405.1 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-05/0.5381, allocations: 35.67 kB / 405.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.934e-05/0.5382, allocations: 33.95 kB / 405.2 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.5382, allocations: 0 / 405.2 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.5382, allocations: 7.984 kB / 405.2 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.5382, allocations: 0 / 405.2 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.5398, allocations: 0.7689 MB / 405.9 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.5398, allocations: 0 / 405.9 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.5403, allocations: 52 kB / 406 MB, free: 364 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004908/0.5409, allocations: 92.12 kB / 406.1 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.5409, allocations: 7.75 kB / 406.1 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002724/0.5436, allocations: 1.816 MB / 407.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.5437, allocations: 0 / 407.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.5448, allocations: 0.5032 MB / 408.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.5449, allocations: 104.2 kB / 408.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.275e-05/0.545, allocations: 3.5 kB / 408.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.5453, allocations: 18.92 kB / 408.5 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.5454, allocations: 27.3 kB / 408.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.5455, allocations: 6.688 kB / 408.6 MB, free: 14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000191/0.5457, allocations: 157.5 kB / 408.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5457, allocations: 0 / 408.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000585/0.5463, allocations: 105.4 kB / 408.8 MB, free: 13.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001484/0.5478, allocations: 1.112 MB / 409.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000556/0.5484, allocations: 191.2 kB / 410.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5484, allocations: 0 / 410.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005693/0.549, allocations: 248.7 kB / 410.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.5493, allocations: 19 kB / 410.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.5513, allocations: 0.7696 MB / 411.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.5517, allocations: 0.7947 MB / 411.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001609/0.5519, allocations: 30.06 kB / 412 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.5521, allocations: 101.8 kB / 412.1 MB, free: 10.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5521, allocations: 0 / 412.1 MB, free: 10.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.5915, allocations: 5.103 MB / 417.2 MB, free: 5.742 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003013/0.5919, allocations: 181.5 kB / 417.3 MB, free: 5.512 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/3.045, allocations: 4 kB / 417.3 MB, free: 5.508 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat