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.14/2.14, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.715e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3145, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.4951, allocations: 97.11 MB / 391.3 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.4955, allocations: 71.95 kB / 391.4 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.708/1.203, allocations: 120.1 MB / 0.4995 GB, free: 36.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.326e-06/1.204, allocations: 0 / 0.4995 GB, free: 36.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.704e-05/1.204, allocations: 44 kB / 0.4995 GB, free: 36.22 MB / 362.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.006773/1.21, allocations: 2.714 MB / 0.5022 GB, free: 33.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/1.21, allocations: 8.031 kB / 0.5022 GB, free: 33.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008575/1.211, allocations: 395.2 kB / 0.5026 GB, free: 33.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006204/1.218, allocations: 2.376 MB / 0.5049 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/1.218, allocations: 20 kB / 0.5049 GB, free: 30.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/1.218, allocations: 35.91 kB / 0.5049 GB, free: 30.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001512/1.219, allocations: 0.686 MB / 0.5056 GB, free: 29.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/1.221, allocations: 0.7206 MB / 0.5063 GB, free: 29.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/1.221, allocations: 3.938 kB / 0.5063 GB, free: 29.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/1.221, allocations: 4 kB / 0.5063 GB, free: 29.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.063e-05/1.221, allocations: 19.98 kB / 0.5063 GB, free: 29.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008668/1.23, allocations: 3.069 MB / 0.5093 GB, free: 25.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/1.231, allocations: 467.9 kB / 0.5098 GB, free: 25.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009408/1.232, allocations: 0.5694 MB / 0.5103 GB, free: 24.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05185/1.284, allocations: 36.16 MB / 0.5457 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007752/1.285, allocations: 321.2 kB / 0.546 GB, free: 15.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 6.192e-06/1.285, allocations: 3.984 kB / 0.546 GB, free: 15.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002254/1.287, allocations: 0.7743 MB / 0.5467 GB, free: 14.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/1.287, allocations: 277 kB / 0.547 GB, free: 14.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006015/1.293, allocations: 2.318 MB / 0.5492 GB, free: 11.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001814/1.293, allocations: 29.7 kB / 0.5493 GB, free: 11.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001997/1.295, allocations: 1.232 MB / 0.5505 GB, free: 10.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/1.296, allocations: 169.6 kB / 0.5506 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.258e-05/1.296, allocations: 0 / 0.5506 GB, free: 10.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/1.296, allocations: 338.8 kB / 0.551 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/1.297, allocations: 178.6 kB / 0.5511 GB, free: 9.879 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008914/1.298, allocations: 0.5824 MB / 0.5517 GB, free: 9.098 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007962/1.298, allocations: 264.5 kB / 0.552 GB, free: 8.836 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/1.298, allocations: 0 / 0.552 GB, free: 8.836 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002105/1.3, allocations: 0.7254 MB / 0.5527 GB, free: 8.105 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/1.301, allocations: 12 kB / 0.5527 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002306/1.301, allocations: 79.98 kB / 0.5528 GB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.85e-05/1.301, allocations: 24.7 kB / 0.5528 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/1.302, allocations: 211.7 kB / 0.553 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-05/1.302, allocations: 23.95 kB / 0.553 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/1.305, allocations: 111 kB / 0.5531 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003043/1.305, allocations: 71.98 kB / 0.5532 GB, free: 7.582 MB / 394.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.0003/1.305, allocations: 140.6 kB / 0.5533 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002175/1.307, allocations: 0.7819 MB / 0.5541 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000864/1.308, allocations: 391.3 kB / 0.5544 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/1.313, allocations: 1.112 MB / 0.5555 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/1.313, allocations: 8 kB / 0.5555 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.313, allocations: 4 kB / 0.5555 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/1.313, allocations: 7.922 kB / 0.5556 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/1.319, allocations: 1.998 MB / 0.5575 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002153/1.32, allocations: 71.92 kB / 0.5576 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009615/1.321, allocations: 107.9 kB / 0.5577 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/1.321, allocations: 0 / 0.5577 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/1.321, allocations: 27.98 kB / 0.5577 GB, free: 2.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/1.321, allocations: 4 kB / 0.5577 GB, free: 2.863 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.321, allocations: 3.938 kB / 0.5577 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/1.324, allocations: 1.186 MB / 0.5589 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/1.325, allocations: 0.5529 MB / 0.5594 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009603/1.326, allocations: 8 kB / 0.5594 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/1.328, allocations: 40.02 kB / 0.5595 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00033/1.329, allocations: 55.94 kB / 0.5595 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/1.329, allocations: 43.98 kB / 0.5595 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.3018/1.631, allocations: 1.716 MB / 0.5612 GB, free: 87.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.631, allocations: 0.6875 kB / 0.5612 GB, free: 87.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002997/1.634, allocations: 0.6133 MB / 0.5618 GB, free: 87.33 MB / 394.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.005233/1.639, allocations: 2.681 MB / 0.5644 GB, free: 86.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001799/1.641, allocations: 0.6659 MB / 0.5651 GB, free: 86.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.641, allocations: 1.219 kB / 0.5651 GB, free: 86.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008173/1.642, allocations: 391.3 kB / 0.5655 GB, free: 86.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/1.645, allocations: 0.4939 MB / 0.5659 GB, free: 86.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/1.657, allocations: 3.669 MB / 0.5695 GB, free: 84.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/1.658, allocations: 1.729 MB / 0.5712 GB, free: 84.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001968/1.66, allocations: 1.22 MB / 0.5724 GB, free: 84.25 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/1.66, allocations: 0 / 0.5724 GB, free: 84.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.68/5.34, allocations: 48.41 MB / 0.6197 GB, free: 69.8 MB / 394.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