Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.889/1.889, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.647e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.296, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.4629, allocations: 93.95 MB / 357.8 MB, free: 11.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003235/0.4633, allocations: 71.95 kB / 357.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6936/1.157, allocations: 127.4 MB / 485.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.157, allocations: 0 / 485.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.572e-05/1.157, allocations: 44 kB / 485.3 MB, free: 3.324 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008137/1.165, allocations: 2.716 MB / 488 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/1.165, allocations: 8.031 kB / 488 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003619/1.166, allocations: 98.5 kB / 488.1 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/1.167, allocations: 395.2 kB / 488.5 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007493/1.174, allocations: 2.36 MB / 490.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.884e-05/1.174, allocations: 44.94 kB / 490.9 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002395/1.175, allocations: 51.91 kB / 491 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/1.177, allocations: 0.7891 MB / 491.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/1.177, allocations: 0 / 491.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/1.177, allocations: 20 kB / 491.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.773e-05/1.177, allocations: 19.98 kB / 491.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/1.179, allocations: 0.7091 MB / 492.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/1.189, allocations: 3.193 MB / 495.7 MB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/1.191, allocations: 487.8 kB / 496.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/1.192, allocations: 0.5888 MB / 496.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.302/1.494, allocations: 36.16 MB / 0.5205 GB, free: 38.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006998/1.495, allocations: 319 kB / 0.5208 GB, free: 38.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.877e-06/1.495, allocations: 0 / 0.5208 GB, free: 38.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001869/1.497, allocations: 0.8089 MB / 0.5215 GB, free: 37.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.483e-05/1.497, allocations: 275.3 kB / 0.5218 GB, free: 37.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004574/1.501, allocations: 2.51 MB / 0.5243 GB, free: 37.33 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001734/1.502, allocations: 38.2 kB / 0.5243 GB, free: 37.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/1.503, allocations: 1.239 MB / 0.5255 GB, free: 37.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/1.503, allocations: 167.1 kB / 0.5257 GB, free: 36.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/1.503, allocations: 17.31 kB / 0.5257 GB, free: 36.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.978e-05/1.503, allocations: 347.8 kB / 0.526 GB, free: 36.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005319/1.504, allocations: 198.3 kB / 0.5262 GB, free: 36.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007697/1.505, allocations: 0.5888 MB / 0.5268 GB, free: 36.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006682/1.505, allocations: 283.9 kB / 0.527 GB, free: 36.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/1.505, allocations: 3.75 kB / 0.5271 GB, free: 36.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001916/1.507, allocations: 0.7743 MB / 0.5278 GB, free: 36.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/1.507, allocations: 11.52 kB / 0.5278 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/1.508, allocations: 79.66 kB / 0.5279 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.441e-05/1.508, allocations: 20.38 kB / 0.5279 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/1.509, allocations: 214.2 kB / 0.5281 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-05/1.509, allocations: 24.58 kB / 0.5281 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/1.511, allocations: 128.7 kB / 0.5283 GB, free: 36.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/1.511, allocations: 65.38 kB / 0.5283 GB, free: 36.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002615/1.512, allocations: 168.9 kB / 0.5285 GB, free: 35.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/1.512, allocations: 388 kB / 0.5289 GB, free: 35.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004311/1.517, allocations: 1.144 MB / 0.53 GB, free: 35.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/1.517, allocations: 3.969 kB / 0.53 GB, free: 35.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.517, allocations: 0 / 0.53 GB, free: 35.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/1.517, allocations: 5.219 kB / 0.53 GB, free: 35.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005163/1.522, allocations: 2.124 MB / 0.5321 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001436/1.522, allocations: 74.53 kB / 0.5321 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009414/1.523, allocations: 100.4 kB / 0.5322 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/1.523, allocations: 3.781 kB / 0.5322 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.076e-05/1.523, allocations: 35 kB / 0.5323 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/1.523, allocations: 0 / 0.5323 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.523, allocations: 3.969 kB / 0.5323 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/1.526, allocations: 1.207 MB / 0.5334 GB, free: 34.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.527, allocations: 0.556 MB / 0.534 GB, free: 34.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007278/1.528, allocations: 11.06 kB / 0.534 GB, free: 34.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/1.53, allocations: 52.91 kB / 0.534 GB, free: 34.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002376/1.53, allocations: 63.69 kB / 0.5341 GB, free: 34.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/1.53, allocations: 32.75 kB / 0.5341 GB, free: 34.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004403/1.534, allocations: 1.917 MB / 0.536 GB, free: 34.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.203e-06/1.535, allocations: 3.281 kB / 0.536 GB, free: 34.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0028/1.537, allocations: 0.6498 MB / 0.5366 GB, free: 34.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004816/1.542, allocations: 2.632 MB / 0.5392 GB, free: 33.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001765/1.544, allocations: 0.6885 MB / 0.5399 GB, free: 33.05 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/1.544, allocations: 3.812 kB / 0.5399 GB, free: 33.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007568/1.545, allocations: 390.4 kB / 0.5403 GB, free: 32.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003168/1.548, allocations: 0.4914 MB / 0.5407 GB, free: 32.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/1.559, allocations: 3.704 MB / 0.5444 GB, free: 31.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/1.56, allocations: 1.731 MB / 0.5461 GB, free: 31.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/1.562, allocations: 1.221 MB / 0.5472 GB, free: 31.07 MB / 346.7 MB Notification: Performance of SimCode: time 3.076e-06/1.562, allocations: 0 / 0.5472 GB, free: 31.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.424/4.987, allocations: 48.33 MB / 0.5944 GB, free: 2.285 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat