Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.874e-05/4.894e-05, allocations: 8 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2664, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4397, allocations: 94.1 MB / 357.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000384/0.4402, allocations: 75.95 kB / 358 MB, free: 11.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.175/1.615, allocations: 196.5 MB / 0.5415 GB, free: 45.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.015e-06/1.615, allocations: 0 / 0.5415 GB, free: 45.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001678/1.615, allocations: 85.25 kB / 0.5416 GB, free: 45.73 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01279/1.628, allocations: 4.678 MB / 0.5461 GB, free: 43.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/1.628, allocations: 10.59 kB / 0.5461 GB, free: 43.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006662/1.629, allocations: 160.6 kB / 0.5463 GB, free: 43.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00171/1.63, allocations: 0.7481 MB / 0.547 GB, free: 42.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01382/1.644, allocations: 4.506 MB / 0.5514 GB, free: 41.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/1.644, allocations: 65.58 kB / 0.5515 GB, free: 41.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006952/1.645, allocations: 106.9 kB / 0.5516 GB, free: 41.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004445/1.649, allocations: 1.446 MB / 0.553 GB, free: 41.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.673e-05/1.65, allocations: 0 / 0.553 GB, free: 41.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/1.65, allocations: 46.38 kB / 0.553 GB, free: 41.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.334e-05/1.65, allocations: 40.14 kB / 0.5531 GB, free: 41.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003932/1.654, allocations: 1.366 MB / 0.5544 GB, free: 41.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0202/1.674, allocations: 5.856 MB / 0.5601 GB, free: 38.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/1.676, allocations: 0.8898 MB / 0.561 GB, free: 38.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002468/1.679, allocations: 1.153 MB / 0.5621 GB, free: 37.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3847/2.064, allocations: 71.89 MB / 0.6323 GB, free: 78.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/2.065, allocations: 0.5007 MB / 0.6328 GB, free: 78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 5.871e-06/2.065, allocations: 3.875 kB / 0.6328 GB, free: 78 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.004235/2.069, allocations: 1.469 MB / 0.6343 GB, free: 77.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/2.07, allocations: 483.4 kB / 0.6347 GB, free: 77.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/2.082, allocations: 4.791 MB / 0.6394 GB, free: 76.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003394/2.083, allocations: 44.77 kB / 0.6395 GB, free: 76.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00326/2.086, allocations: 2.352 MB / 0.6417 GB, free: 76.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006294/2.087, allocations: 300.1 kB / 0.642 GB, free: 76.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/2.087, allocations: 26.53 kB / 0.6421 GB, free: 76.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/2.087, allocations: 370.9 kB / 0.6424 GB, free: 75.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/2.088, allocations: 349.6 kB / 0.6427 GB, free: 75.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/2.09, allocations: 1.118 MB / 0.6438 GB, free: 74.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/2.092, allocations: 0.5226 MB / 0.6443 GB, free: 74.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/2.092, allocations: 3.688 kB / 0.6444 GB, free: 74.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004702/2.096, allocations: 1.491 MB / 0.6458 GB, free: 74.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/2.097, allocations: 21.78 kB / 0.6458 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004138/2.097, allocations: 157.7 kB / 0.646 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.268e-05/2.097, allocations: 37.22 kB / 0.646 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/2.1, allocations: 372.3 kB / 0.6464 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.894e-05/2.1, allocations: 49.36 kB / 0.6464 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004344/2.104, allocations: 206.8 kB / 0.6466 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005651/2.105, allocations: 128.5 kB / 0.6467 GB, free: 74.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0005595/2.105, allocations: 213.3 kB / 0.6469 GB, free: 74.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00169/2.107, allocations: 0.7279 MB / 0.6477 GB, free: 74.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009641/2.117, allocations: 2.136 MB / 0.6497 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/2.117, allocations: 6.438 kB / 0.6497 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/2.117, allocations: 1.969 kB / 0.6497 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/2.117, allocations: 5.953 kB / 0.6498 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/2.129, allocations: 3.733 MB / 0.6534 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003123/2.129, allocations: 144.2 kB / 0.6535 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/2.131, allocations: 161.3 kB / 0.6537 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.869e-05/2.131, allocations: 5.375 kB / 0.6537 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003093/2.131, allocations: 60.53 kB / 0.6538 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.646e-06/2.131, allocations: 2.688 kB / 0.6538 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.131, allocations: 3.516 kB / 0.6538 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/2.136, allocations: 2.099 MB / 0.6558 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003588/2.14, allocations: 0.9349 MB / 0.6567 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003074/2.143, allocations: 17.81 kB / 0.6567 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005716/2.149, allocations: 56.77 kB / 0.6568 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006911/2.149, allocations: 104.2 kB / 0.6569 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003963/2.15, allocations: 69.39 kB / 0.657 GB, free: 72.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01518/2.165, allocations: 3.642 MB / 0.6605 GB, free: 71.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.263e-06/2.165, allocations: 2.297 kB / 0.6605 GB, free: 71.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007275/2.172, allocations: 1.173 MB / 0.6617 GB, free: 71.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01232/2.185, allocations: 3.871 MB / 0.6654 GB, free: 70.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005337/2.19, allocations: 1.327 MB / 0.6667 GB, free: 70.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-05/2.19, allocations: 3.859 kB / 0.6667 GB, free: 70.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/2.193, allocations: 0.7204 MB / 0.6674 GB, free: 70.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006213/2.199, allocations: 0.9625 MB / 0.6684 GB, free: 70.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/2.222, allocations: 7.088 MB / 0.6753 GB, free: 68.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004121/2.226, allocations: 2.72 MB / 0.678 GB, free: 67.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004473/2.23, allocations: 2.443 MB / 0.6803 GB, free: 66.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.444e-06/2.23, allocations: 3.062 kB / 0.6804 GB, free: 66.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.783/7.013, allocations: 90.91 MB / 0.7691 GB, free: 79.98 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat