Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.349e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.09998, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/0.6133, allocations: 97.78 MB / 397.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003488/0.6138, allocations: 69.69 kB / 397.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.442/1.056, allocations: 125.3 MB / 0.5109 GB, free: 8.406 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.056, allocations: 0 / 0.5109 GB, free: 8.406 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.366e-05/1.056, allocations: 44 kB / 0.5109 GB, free: 8.363 MB / 410.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.006947/1.063, allocations: 2.713 MB / 0.5136 GB, free: 5.594 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/1.063, allocations: 8.031 kB / 0.5136 GB, free: 5.586 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002785/1.063, allocations: 102.5 kB / 0.5137 GB, free: 5.477 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008439/1.064, allocations: 395.2 kB / 0.514 GB, free: 5.086 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006726/1.071, allocations: 2.367 MB / 0.5164 GB, free: 2.645 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.692e-05/1.071, allocations: 44.98 kB / 0.5164 GB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/1.071, allocations: 51.91 kB / 0.5165 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/1.073, allocations: 0.7774 MB / 0.5172 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/1.073, allocations: 0 / 0.5172 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/1.073, allocations: 24 kB / 0.5172 GB, free: 1.715 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.052e-05/1.073, allocations: 23.98 kB / 0.5173 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/1.075, allocations: 0.7014 MB / 0.5179 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2892/1.364, allocations: 3.186 MB / 0.5211 GB, free: 78.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/1.366, allocations: 489.8 kB / 0.5215 GB, free: 78.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/1.367, allocations: 0.5918 MB / 0.5221 GB, free: 78.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05164/1.419, allocations: 36.18 MB / 0.5574 GB, free: 52.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007227/1.42, allocations: 328.5 kB / 0.5577 GB, free: 52.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.768e-06/1.42, allocations: 0 / 0.5577 GB, free: 52.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002025/1.422, allocations: 0.7934 MB / 0.5585 GB, free: 51.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/1.422, allocations: 273.2 kB / 0.5588 GB, free: 51.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005504/1.427, allocations: 2.515 MB / 0.5612 GB, free: 51.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001726/1.428, allocations: 36.52 kB / 0.5613 GB, free: 51.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/1.429, allocations: 1.242 MB / 0.5625 GB, free: 51.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003131/1.429, allocations: 163.8 kB / 0.5626 GB, free: 50.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.078e-05/1.429, allocations: 18 kB / 0.5627 GB, free: 50.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/1.43, allocations: 346.9 kB / 0.563 GB, free: 50.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/1.43, allocations: 190.1 kB / 0.5632 GB, free: 50.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/1.431, allocations: 0.594 MB / 0.5637 GB, free: 50.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/1.431, allocations: 277.5 kB / 0.564 GB, free: 50.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/1.431, allocations: 3.906 kB / 0.564 GB, free: 50.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001892/1.433, allocations: 0.7879 MB / 0.5648 GB, free: 50.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/1.433, allocations: 10.25 kB / 0.5648 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000157/1.434, allocations: 79.8 kB / 0.5649 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.437e-05/1.434, allocations: 27.09 kB / 0.5649 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/1.435, allocations: 211.1 kB / 0.5651 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-05/1.435, allocations: 29.38 kB / 0.5651 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/1.437, allocations: 120.8 kB / 0.5652 GB, free: 50.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/1.438, allocations: 63.56 kB / 0.5653 GB, free: 50.05 MB / 410.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.0002707/1.438, allocations: 174 kB / 0.5655 GB, free: 49.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008026/1.439, allocations: 397 kB / 0.5658 GB, free: 49.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004484/1.443, allocations: 1.135 MB / 0.567 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/1.443, allocations: 6.406 kB / 0.567 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.443, allocations: 3.688 kB / 0.567 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/1.443, allocations: 0 / 0.567 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005198/1.449, allocations: 2.117 MB / 0.569 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001406/1.449, allocations: 74.7 kB / 0.5691 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009152/1.45, allocations: 107.2 kB / 0.5692 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/1.45, allocations: 0 / 0.5692 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.541e-05/1.45, allocations: 38.88 kB / 0.5692 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/1.45, allocations: 2.5 kB / 0.5692 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.45, allocations: 3.094 kB / 0.5692 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/1.452, allocations: 1.207 MB / 0.5704 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/1.454, allocations: 0.5517 MB / 0.571 GB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006112/1.454, allocations: 13.94 kB / 0.571 GB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/1.456, allocations: 47.19 kB / 0.571 GB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/1.457, allocations: 63.16 kB / 0.5711 GB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/1.457, allocations: 36.06 kB / 0.5711 GB, free: 48.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00429/1.461, allocations: 1.919 MB / 0.573 GB, free: 48.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.461, allocations: 0 / 0.573 GB, free: 48.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002806/1.464, allocations: 0.6497 MB / 0.5736 GB, free: 48.26 MB / 410.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.004567/1.469, allocations: 2.617 MB / 0.5762 GB, free: 47.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001691/1.47, allocations: 0.6952 MB / 0.5769 GB, free: 47.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.47, allocations: 2.5 kB / 0.5769 GB, free: 47.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007324/1.471, allocations: 395.5 kB / 0.5772 GB, free: 46.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/1.474, allocations: 0.4886 MB / 0.5777 GB, free: 46.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/1.485, allocations: 3.713 MB / 0.5813 GB, free: 45.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/1.486, allocations: 1.733 MB / 0.583 GB, free: 45.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001787/1.488, allocations: 1.217 MB / 0.5842 GB, free: 45.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.763e-06/1.488, allocations: 0 / 0.5842 GB, free: 45.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.502/4.989, allocations: 48.33 MB / 0.6314 GB, free: 26.47 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat