Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.237/2.237, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.536e-05/2.534e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3103, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1391/0.4494, allocations: 74.66 MB / 368.9 MB, free: 7.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4497, allocations: 75.95 kB / 369 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02551/0.4752, allocations: 5.485 MB / 374.5 MB, free: 1.605 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4753, allocations: 3.938 kB / 374.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.4753, allocations: 4 kB / 374.5 MB, free: 1.598 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001513/0.4768, allocations: 0.576 MB / 375 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.4769, allocations: 12.03 kB / 375 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.4771, allocations: 31.62 kB / 375.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/0.4776, allocations: 278.2 kB / 375.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.4777, allocations: 12 kB / 375.4 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.029e-05/0.4778, allocations: 12 kB / 375.4 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005601/0.4783, allocations: 161.1 kB / 375.5 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.4789, allocations: 195.7 kB / 375.7 MB, free: 240 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.4789, allocations: 3.938 kB / 375.7 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.479, allocations: 3.984 kB / 375.7 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.479, allocations: 4 kB / 375.7 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.4818, allocations: 1.032 MB / 376.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000376/0.4822, allocations: 94.66 kB / 376.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.4823, allocations: 40.86 kB / 376.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.4824, allocations: 0 / 376.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.4827, allocations: 113.2 kB / 377 MB, free: 14.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.224e-06/0.4827, allocations: 0 / 377 MB, free: 14.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005097/0.4832, allocations: 138.2 kB / 377.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.4833, allocations: 81.11 kB / 377.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.4837, allocations: 234 kB / 377.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.4837, allocations: 29.69 kB / 377.5 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.4839, allocations: 207.6 kB / 377.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.484, allocations: 31.55 kB / 377.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.484, allocations: 3.938 kB / 377.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4842, allocations: 334.8 kB / 378 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.4844, allocations: 48.47 kB / 378.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.4846, allocations: 146.4 kB / 378.2 MB, free: 13.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.4848, allocations: 67.91 kB / 378.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4848, allocations: 0 / 378.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007535/0.4856, allocations: 238 kB / 378.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.272e-05/0.4857, allocations: 41.64 kB / 378.6 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4857, allocations: 7.938 kB / 378.6 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002374/0.4859, allocations: 33.31 kB / 378.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.4864, allocations: 59.89 kB / 378.7 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.4877, allocations: 1.256 MB / 379.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005599/0.4883, allocations: 43.72 kB / 380 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.162e-05/0.4883, allocations: 12 kB / 380 MB, free: 11.63 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 (26): * Single equations (assignments): 24 * 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.0001401/0.4885, allocations: 121 kB / 380.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003878/0.4889, allocations: 138.2 kB / 380.2 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.995e-05/0.489, allocations: 19.72 kB / 380.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.32e-05/0.4891, allocations: 25.83 kB / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.4891, allocations: 0 / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4891, allocations: 8 kB / 380.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.4891, allocations: 0 / 380.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.4897, allocations: 407.8 kB / 380.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4897, allocations: 0 / 380.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.49, allocations: 23.98 kB / 380.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.4902, allocations: 32.77 kB / 380.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.4902, allocations: 8.219 kB / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.4914, allocations: 1.233 MB / 382 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4915, allocations: 8 kB / 382 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000456/0.4919, allocations: 180.3 kB / 382.2 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.4921, allocations: 96.83 kB / 382.3 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.409e-05/0.4921, allocations: 3.984 kB / 382.3 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.4925, allocations: 23.98 kB / 382.3 MB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4926, allocations: 27.86 kB / 382.3 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.4927, allocations: 4 kB / 382.3 MB, free: 9.062 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002791/0.493, allocations: 186 kB / 382.5 MB, free: 8.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.493, allocations: 0 / 382.5 MB, free: 8.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005828/0.4936, allocations: 71.69 kB / 382.6 MB, free: 8.812 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 (9): * Single equations (assignments): 6 * 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.0008308/0.4944, allocations: 0.785 MB / 383.4 MB, free: 7.992 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006999/0.4951, allocations: 301 kB / 383.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4951, allocations: 0 / 383.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000334/0.4955, allocations: 157.8 kB / 383.8 MB, free: 7.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.4959, allocations: 37.72 kB / 383.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.497, allocations: 332.8 kB / 384.2 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.4974, allocations: 0.756 MB / 384.9 MB, free: 6.332 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.4977, allocations: 26.08 kB / 384.9 MB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.4979, allocations: 79.41 kB / 385 MB, free: 6.223 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4979, allocations: 0 / 385 MB, free: 6.223 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04503/0.5429, allocations: 4.23 MB / 389.3 MB, free: 2.016 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/0.5433, allocations: 137.8 kB / 389.4 MB, free: 1.828 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.365/2.908, allocations: 0 / 389.4 MB, free: 1.828 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat