Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.539e-05, allocations: 8 kB / 269.5 MB, free: 6.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.09892, allocations: 47.57 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4507/0.5497, allocations: 80.04 MB / 397.1 MB, free: 8.008 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.55, allocations: 78.7 kB / 397.1 MB, free: 7.965 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02852/0.5785, allocations: 6.066 MB / 403.2 MB, free: 2.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5786, allocations: 0 / 403.2 MB, free: 2.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.5786, allocations: 4 kB / 403.2 MB, free: 2.754 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001623/0.5803, allocations: 0.6096 MB / 403.8 MB, free: 2.117 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.044e-05/0.5803, allocations: 12.03 kB / 403.8 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.5805, allocations: 61.72 kB / 403.9 MB, free: 2.051 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.5806, allocations: 31.62 kB / 403.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005138/0.5811, allocations: 285.3 kB / 404.2 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.5812, allocations: 20.06 kB / 404.2 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-05/0.5812, allocations: 23.69 kB / 404.3 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006027/0.5818, allocations: 235.5 kB / 404.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.5819, allocations: 0 / 404.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.5819, allocations: 11.75 kB / 404.5 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.5819, allocations: 4 kB / 404.5 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.5825, allocations: 189.5 kB / 404.7 MB, free: 1.422 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.5853, allocations: 1.13 MB / 405.8 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.5858, allocations: 117.4 kB / 405.9 MB, free: 316 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.586, allocations: 48.28 kB / 406 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.586, allocations: 8.031 kB / 406 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002739/0.5863, allocations: 120 kB / 406.1 MB, free: 156 kB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.575e-06/0.5863, allocations: 0 / 406.1 MB, free: 156 kB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005106/0.5868, allocations: 156.8 kB / 406.3 MB, free: 16 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.5869, allocations: 81.05 kB / 406.3 MB, free: 15.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004525/0.5874, allocations: 292.5 kB / 406.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.5874, allocations: 29.39 kB / 406.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.5876, allocations: 201.8 kB / 406.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.733e-05/0.5877, allocations: 31.42 kB / 406.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/0.5877, allocations: 3.875 kB / 406.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5879, allocations: 342.4 kB / 407.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.5881, allocations: 55.23 kB / 407.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.5884, allocations: 168.2 kB / 407.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.5886, allocations: 109 kB / 407.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5886, allocations: 3.938 kB / 407.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007521/0.5894, allocations: 293.6 kB / 407.8 MB, free: 14.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006376/0.59, allocations: 1.422 MB / 409.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5901, allocations: 4 kB / 409.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/0.5903, allocations: 40.67 kB / 409.3 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005078/0.5908, allocations: 67.89 kB / 409.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.5921, allocations: 1.298 MB / 410.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/0.5928, allocations: 55.41 kB / 410.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.872e-05/0.5928, allocations: 12 kB / 410.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.5928, allocations: 4 kB / 410.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006594/0.5935, allocations: 257.8 kB / 411 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.5935, allocations: 4 kB / 411 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001101/0.5936, allocations: 20.52 kB / 411 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.5941, allocations: 67.89 kB / 411.1 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.5953, allocations: 1.298 MB / 412.4 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.5958, allocations: 47.05 kB / 412.4 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.5959, allocations: 12 kB / 412.4 MB, free: 9.773 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.596, allocations: 132.3 kB / 412.6 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.5961, allocations: 23.72 kB / 412.6 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.526e-05/0.5962, allocations: 27.39 kB / 412.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5962, allocations: 7.938 kB / 412.6 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.5962, allocations: 0 / 412.6 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.5962, allocations: 3.953 kB / 412.6 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000615/0.5969, allocations: 448.5 kB / 413.1 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5969, allocations: 0 / 413.1 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.5972, allocations: 43.25 kB / 413.1 MB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.5974, allocations: 24.03 kB / 413.1 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.5974, allocations: 0 / 413.1 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.5986, allocations: 1.3 MB / 414.4 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5986, allocations: 0 / 414.4 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004443/0.5991, allocations: 205.2 kB / 414.6 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.5992, allocations: 104.1 kB / 414.7 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.5993, allocations: 3.188 kB / 414.7 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004151/0.5997, allocations: 31.97 kB / 414.8 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/0.5998, allocations: 19.41 kB / 414.8 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.5999, allocations: 11.44 kB / 414.8 MB, free: 7.348 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003496/0.6002, allocations: 226 kB / 415 MB, free: 7.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6002, allocations: 0 / 415 MB, free: 7.172 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007943/0.601, allocations: 125.3 kB / 415.1 MB, free: 7.059 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008604/0.6019, allocations: 0.8078 MB / 415.9 MB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.6031, allocations: 0.5723 MB / 416.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6032, allocations: 0 / 416.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.6035, allocations: 167.7 kB / 416.7 MB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.604, allocations: 51.23 kB / 416.7 MB, free: 5.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.6052, allocations: 351.7 kB / 417.1 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.6058, allocations: 0.7609 MB / 417.8 MB, free: 4.387 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003761/0.6061, allocations: 54.94 kB / 417.9 MB, free: 4.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.6063, allocations: 81.91 kB / 418 MB, free: 4.305 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6063, allocations: 4 kB / 418 MB, free: 4.301 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03926/0.6456, allocations: 5.885 MB / 423.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002983/0.646, allocations: 186.2 kB / 424 MB, free: 14.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/3.193, allocations: 0 / 424 MB, free: 14.27 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat