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 1.898/1.898, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.157e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09734, allocations: 44.5 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.4818, allocations: 75.3 MB / 375.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.4822, allocations: 75.75 kB / 375.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0243/0.5065, allocations: 5.554 MB / 380.9 MB, free: 12.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5065, allocations: 0 / 380.9 MB, free: 12.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.5066, allocations: 11.08 kB / 380.9 MB, free: 12.13 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.001282/0.5079, allocations: 0.5689 MB / 381.5 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.5079, allocations: 9.906 kB / 381.5 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.676e-05/0.508, allocations: 61.44 kB / 381.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.964e-05/0.5081, allocations: 36.64 kB / 381.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.5085, allocations: 275.8 kB / 381.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.5086, allocations: 21.16 kB / 381.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.5087, allocations: 30.72 kB / 381.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.5093, allocations: 229.4 kB / 382.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.5093, allocations: 0 / 382.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.5094, allocations: 15.94 kB / 382.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.5094, allocations: 5.656 kB / 382.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005013/0.5099, allocations: 170.7 kB / 382.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.5123, allocations: 1.091 MB / 383.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.5127, allocations: 97.86 kB / 383.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.5128, allocations: 42.73 kB / 383.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.5129, allocations: 3.719 kB / 383.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.5131, allocations: 112 kB / 383.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.255e-06/0.5131, allocations: 3.938 kB / 383.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004859/0.5136, allocations: 142.8 kB / 383.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.5137, allocations: 86.22 kB / 383.9 MB, free: 10.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.5141, allocations: 284.3 kB / 384.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.5142, allocations: 27.08 kB / 384.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.5143, allocations: 197.5 kB / 384.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.908e-05/0.5144, allocations: 39.31 kB / 384.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.5144, allocations: 3.938 kB / 384.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.472e-05/0.5145, allocations: 337.1 kB / 384.8 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.5146, allocations: 56.16 kB / 384.8 MB, free: 9.922 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.5149, allocations: 159.9 kB / 385 MB, free: 9.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.5151, allocations: 100.5 kB / 385.1 MB, free: 9.742 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.5151, allocations: 1.625 kB / 385.1 MB, free: 9.742 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007058/0.5158, allocations: 297.6 kB / 385.4 MB, free: 9.633 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.189e-05/0.5159, allocations: 36.25 kB / 385.4 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.5159, allocations: 11.58 kB / 385.4 MB, free: 9.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002269/0.5161, allocations: 35.03 kB / 385.4 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004302/0.5166, allocations: 61.58 kB / 385.5 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.5176, allocations: 1.305 MB / 386.8 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005596/0.5182, allocations: 51.8 kB / 386.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.5182, allocations: 16.86 kB / 386.9 MB, free: 8.289 MB / 314.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.0001079/0.5184, allocations: 136.3 kB / 387 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.5184, allocations: 23.56 kB / 387 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.568e-05/0.5185, allocations: 26.64 kB / 387 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5185, allocations: 2.5 kB / 387.1 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.5185, allocations: 0 / 387.1 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5186, allocations: 1.219 kB / 387.1 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005441/0.5191, allocations: 442.7 kB / 387.5 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5191, allocations: 8.031 kB / 387.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.5194, allocations: 28.42 kB / 387.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.5196, allocations: 29.53 kB / 387.5 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.5196, allocations: 2.375 kB / 387.6 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009504/0.5206, allocations: 1.296 MB / 388.8 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5206, allocations: 1.281 kB / 388.8 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004575/0.521, allocations: 197.6 kB / 389 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.5212, allocations: 107.3 kB / 389.1 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.747e-05/0.5212, allocations: 1.344 kB / 389.1 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.5216, allocations: 31.11 kB / 389.2 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.5217, allocations: 20.67 kB / 389.2 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.5218, allocations: 5.594 kB / 389.2 MB, free: 6.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003379/0.5221, allocations: 222.3 kB / 389.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5221, allocations: 0 / 389.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005003/0.5226, allocations: 62.22 kB / 389.5 MB, free: 6.23 MB / 314.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.0009838/0.5236, allocations: 0.813 MB / 390.3 MB, free: 21.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006964/0.5243, allocations: 318.6 kB / 390.6 MB, free: 21.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5244, allocations: 1.344 kB / 390.6 MB, free: 21.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.5247, allocations: 164.1 kB / 390.8 MB, free: 21.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.5251, allocations: 41.08 kB / 390.8 MB, free: 21.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.5262, allocations: 340 kB / 391.1 MB, free: 21.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.5266, allocations: 0.7607 MB / 391.9 MB, free: 20.31 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.5268, allocations: 32.48 kB / 391.9 MB, free: 20.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.527, allocations: 78.69 kB / 392 MB, free: 20.3 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.527, allocations: 0 / 392 MB, free: 20.3 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.5616, allocations: 5.148 MB / 397.2 MB, free: 19.79 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002493/0.5619, allocations: 179.5 kB / 397.3 MB, free: 19.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.116, allocations: 0 / 397.3 MB, free: 19.57 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