Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.811e-05/3.829e-05, allocations: 0 / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1393, allocations: 44.53 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4655/0.6049, allocations: 97.44 MB / 397.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.6052, allocations: 76.45 kB / 397.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2866/0.8919, allocations: 89.31 MB / 486.8 MB, free: 13.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.8919, allocations: 0 / 486.8 MB, free: 13.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.092e-05/0.892, allocations: 20 kB / 486.8 MB, free: 13.64 MB / 378.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.004273/0.8963, allocations: 1.61 MB / 488.4 MB, free: 11.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.8963, allocations: 16.03 kB / 488.4 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001307/0.8965, allocations: 66.53 kB / 488.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003958/0.8969, allocations: 193.7 kB / 488.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003356/0.9003, allocations: 1.219 MB / 489.9 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.224e-05/0.9003, allocations: 24.55 kB / 489.9 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.9005, allocations: 24 kB / 489.9 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.9017, allocations: 447.6 kB / 490.4 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.9017, allocations: 0 / 490.4 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.338e-05/0.9018, allocations: 15.98 kB / 490.4 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.9018, allocations: 4 kB / 490.4 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.9028, allocations: 378.4 kB / 490.8 MB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.9077, allocations: 1.658 MB / 492.4 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/0.9085, allocations: 275.5 kB / 492.7 MB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007811/0.9093, allocations: 362 kB / 493 MB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02854/0.9378, allocations: 18.18 MB / 0.4992 GB, free: 2.383 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000545/0.9384, allocations: 211.2 kB / 0.4994 GB, free: 2.164 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.835e-06/0.9384, allocations: 4 kB / 0.4995 GB, free: 2.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001365/0.9398, allocations: 496.1 kB / 0.4999 GB, free: 1.664 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.9399, allocations: 170.1 kB / 0.5001 GB, free: 1.461 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.9424, allocations: 1.213 MB / 0.5013 GB, free: 216 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.683e-05/0.9425, allocations: 33.7 kB / 0.5013 GB, free: 176 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007673/0.9433, allocations: 0.6309 MB / 0.5019 GB, free: 15.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.9434, allocations: 98.73 kB / 0.502 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.9435, allocations: 8 kB / 0.502 GB, free: 15.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.9436, allocations: 330.8 kB / 0.5023 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003514/0.944, allocations: 109.1 kB / 0.5024 GB, free: 15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/0.9445, allocations: 331.8 kB / 0.5028 GB, free: 14.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004581/0.945, allocations: 160.3 kB / 0.5029 GB, free: 14.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.945, allocations: 4 kB / 0.5029 GB, free: 14.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001397/0.9464, allocations: 0.4957 MB / 0.5034 GB, free: 13.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.9465, allocations: 4 kB / 0.5034 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001094/0.9466, allocations: 51.88 kB / 0.5035 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/0.9471, allocations: 137.5 kB / 0.5036 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/0.948, allocations: 115.8 kB / 0.5037 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.9489, allocations: 0.6773 MB / 0.5044 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.9501, allocations: 79.5 kB / 0.5044 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-05/0.9502, allocations: 32 kB / 0.5045 GB, free: 12.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002126/0.9504, allocations: 152.8 kB / 0.5046 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002762/0.9507, allocations: 185.8 kB / 0.5048 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002784/0.9535, allocations: 0.6762 MB / 0.5054 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.9535, allocations: 7.938 kB / 0.5055 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.9536, allocations: 3.953 kB / 0.5055 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.9536, allocations: 3.938 kB / 0.5055 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.9565, allocations: 1.238 MB / 0.5067 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-05/0.9567, allocations: 36 kB / 0.5067 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005068/0.9572, allocations: 64 kB / 0.5068 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004121/0.9576, allocations: 116.8 kB / 0.5069 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.974e-05/0.9577, allocations: 27.88 kB / 0.5069 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008118/0.9585, allocations: 0.6656 MB / 0.5076 GB, free: 9.504 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.9585, allocations: 4.062 kB / 0.5076 GB, free: 9.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.9599, allocations: 0.6375 MB / 0.5082 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006645/0.9606, allocations: 290.7 kB / 0.5085 GB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.9608, allocations: 12 kB / 0.5085 GB, free: 8.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/0.9618, allocations: 39.95 kB / 0.5085 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.9619, allocations: 39.95 kB / 0.5085 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.837e-05/0.962, allocations: 19.98 kB / 0.5086 GB, free: 8.402 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002058/0.9641, allocations: 0.9353 MB / 0.5095 GB, free: 7.441 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.673e-06/0.9641, allocations: 4 kB / 0.5095 GB, free: 7.438 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001732/0.9659, allocations: 367.7 kB / 0.5098 GB, free: 7.078 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003238/0.9692, allocations: 1.86 MB / 0.5116 GB, free: 5.168 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.9705, allocations: 419.8 kB / 0.512 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/0.9706, allocations: 0 / 0.512 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006658/0.9712, allocations: 241.3 kB / 0.5123 GB, free: 4.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.9728, allocations: 248 kB / 0.5125 GB, free: 4.254 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005255/0.978, allocations: 1.84 MB / 0.5143 GB, free: 2.355 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009679/0.9791, allocations: 1.183 MB / 0.5155 GB, free: 1.141 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009977/0.9801, allocations: 0.5617 MB / 0.516 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9801, allocations: 0 / 0.516 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.28/4.26, allocations: 29.93 MB / 0.5452 GB, free: 97.46 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat