Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.832/1.832, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.414e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2986, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.4231, allocations: 71.57 MB / 329.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.4234, allocations: 71.97 kB / 330 MB, free: 6.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0985/0.5219, allocations: 28.25 MB / 358.2 MB, free: 9.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.522, allocations: 0 / 358.2 MB, free: 9.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.522, allocations: 4 kB / 358.2 MB, free: 9.965 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007444/0.5228, allocations: 0.6213 MB / 358.8 MB, free: 9.273 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.5229, allocations: 15.95 kB / 358.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.523, allocations: 39.53 kB / 358.9 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.5234, allocations: 251.7 kB / 359.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.5234, allocations: 4 kB / 359.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.5235, allocations: 8 kB / 359.2 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002058/0.5237, allocations: 59.97 kB / 359.2 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.5241, allocations: 137.5 kB / 359.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.5241, allocations: 7.938 kB / 359.4 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.5242, allocations: 7.984 kB / 359.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.914e-06/0.5242, allocations: 4 kB / 359.4 MB, free: 8.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009958/0.5252, allocations: 441.2 kB / 359.8 MB, free: 8.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.5254, allocations: 90.56 kB / 359.9 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.5256, allocations: 88.84 kB / 360 MB, free: 8.043 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.5257, allocations: 3.938 kB / 360 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.5261, allocations: 218.8 kB / 360.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.206e-06/0.5261, allocations: 0 / 360.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009009/0.527, allocations: 309.1 kB / 360.5 MB, free: 7.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.5271, allocations: 170.2 kB / 360.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008571/0.528, allocations: 448.9 kB / 361.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.5281, allocations: 29.7 kB / 361.1 MB, free: 6.812 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.5282, allocations: 167.9 kB / 361.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.009e-05/0.5283, allocations: 39.52 kB / 361.3 MB, free: 6.609 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.5283, allocations: 4 kB / 361.3 MB, free: 6.605 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5284, allocations: 316.5 kB / 361.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.5286, allocations: 59.97 kB / 361.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.5288, allocations: 55.98 kB / 361.8 MB, free: 6.176 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.529, allocations: 54.64 kB / 361.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.529, allocations: 4 kB / 361.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007782/0.5298, allocations: 277.6 kB / 362.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.5299, allocations: 122.8 kB / 362.2 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5299, allocations: 7.875 kB / 362.2 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.53, allocations: 3.984 kB / 362.2 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.491e-05/0.53, allocations: 4 kB / 362.2 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.53, allocations: 64 / 362.2 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.5303, allocations: 15.91 kB / 362.2 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/0.5305, allocations: 123.7 kB / 362.4 MB, free: 5.547 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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.0002751/0.5308, allocations: 249.5 kB / 362.6 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008773/0.5317, allocations: 325.2 kB / 362.9 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.5318, allocations: 47.47 kB / 363 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.532, allocations: 67.42 kB / 363 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.5321, allocations: 4 kB / 363 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5321, allocations: 3.938 kB / 363 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5321, allocations: 0 / 363 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.5334, allocations: 0.6783 MB / 363.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5334, allocations: 0 / 363.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.138e-05/0.5334, allocations: 4 kB / 363.7 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.5335, allocations: 0 / 363.7 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-05/0.5335, allocations: 19.98 kB / 363.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.5335, allocations: 0 / 363.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.5336, allocations: 0 / 363.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008808/0.5344, allocations: 434.9 kB / 364.2 MB, free: 3.629 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005504/0.535, allocations: 264.4 kB / 364.4 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5351, allocations: 8 kB / 364.4 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.5354, allocations: 16 kB / 364.4 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.5356, allocations: 31.95 kB / 364.5 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/0.5358, allocations: 119.8 kB / 364.6 MB, free: 3.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006765/0.5365, allocations: 370.7 kB / 365 MB, free: 2.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5365, allocations: 0 / 365 MB, free: 2.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004698/0.537, allocations: 40 kB / 365 MB, free: 2.781 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.001337/0.5383, allocations: 0.9814 MB / 366 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007235/0.5391, allocations: 437.5 kB / 366.4 MB, free: 1.297 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5391, allocations: 0 / 366.4 MB, free: 1.297 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004436/0.5396, allocations: 373.6 kB / 366.8 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008373/0.5404, allocations: 97.77 kB / 366.9 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.5422, allocations: 0.6508 MB / 367.5 MB, free: 96 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2063/0.7485, allocations: 0.8025 MB / 368.3 MB, free: 91.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.981e-05/0.7486, allocations: 26.27 kB / 368.3 MB, free: 91.29 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7487, allocations: 1.906 kB / 368.3 MB, free: 91.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.677/3.425, allocations: 4.314 MB / 372.7 MB, free: 90.97 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat