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.982/1.982, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.142e-05/4.158e-05, allocations: 4 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09793, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5128, allocations: 75.31 MB / 375.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.5132, allocations: 80.27 kB / 375.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0254/0.5386, allocations: 5.547 MB / 380.9 MB, free: 11.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5386, allocations: 0 / 380.9 MB, free: 11.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.5387, allocations: 10.19 kB / 380.9 MB, free: 11.62 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.001317/0.54, allocations: 0.5703 MB / 381.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5401, allocations: 9.312 kB / 381.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.998e-05/0.5402, allocations: 62.12 kB / 381.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.871e-05/0.5403, allocations: 32.97 kB / 381.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.5407, allocations: 278.2 kB / 381.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.5408, allocations: 21.47 kB / 381.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.338e-05/0.5408, allocations: 23.31 kB / 381.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005999/0.5415, allocations: 225.6 kB / 382.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.5415, allocations: 3.984 kB / 382.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.5415, allocations: 8.594 kB / 382.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.5416, allocations: 9.938 kB / 382.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.5421, allocations: 169.2 kB / 382.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002448/0.5445, allocations: 1.091 MB / 383.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.545, allocations: 103.7 kB / 383.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.5451, allocations: 39.48 kB / 383.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.5452, allocations: 5.312 kB / 383.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002513/0.5454, allocations: 109.1 kB / 383.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.246e-06/0.5454, allocations: 0 / 383.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004816/0.5459, allocations: 152.2 kB / 383.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.546, allocations: 79.86 kB / 383.9 MB, free: 10.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000441/0.5464, allocations: 288.6 kB / 384.2 MB, free: 9.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.5465, allocations: 27.36 kB / 384.2 MB, free: 9.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5466, allocations: 198.4 kB / 384.4 MB, free: 9.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.5467, allocations: 39.88 kB / 384.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.5467, allocations: 4.656 kB / 384.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.037e-05/0.5468, allocations: 335 kB / 384.8 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.547, allocations: 56.78 kB / 384.8 MB, free: 9.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.5472, allocations: 156.5 kB / 385 MB, free: 9.285 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.5474, allocations: 99.38 kB / 385.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.5474, allocations: 1.375 kB / 385.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006751/0.5481, allocations: 289.9 kB / 385.4 MB, free: 9.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.5482, allocations: 40.27 kB / 385.4 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5482, allocations: 4.531 kB / 385.4 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002362/0.5485, allocations: 35.75 kB / 385.4 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.5489, allocations: 59.61 kB / 385.5 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.55, allocations: 1.308 MB / 386.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.5505, allocations: 50.53 kB / 386.9 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.5506, allocations: 17.72 kB / 386.9 MB, free: 7.789 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.0001101/0.5507, allocations: 127.7 kB / 387 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.5508, allocations: 23.72 kB / 387 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.742e-05/0.5509, allocations: 28.47 kB / 387.1 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.5509, allocations: 2.469 kB / 387.1 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5509, allocations: 0 / 387.1 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.5509, allocations: 1.25 kB / 387.1 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005596/0.5515, allocations: 447 kB / 387.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.5515, allocations: 1.281 kB / 387.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.5518, allocations: 31.47 kB / 387.5 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001576/0.5519, allocations: 35.31 kB / 387.6 MB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.552, allocations: 9.062 kB / 387.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.5532, allocations: 1.289 MB / 388.9 MB, free: 22.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5532, allocations: 1.344 kB / 388.9 MB, free: 22.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000466/0.5537, allocations: 192.8 kB / 389 MB, free: 21.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.5538, allocations: 101.9 kB / 389.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.41e-05/0.5539, allocations: 7.781 kB / 389.2 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.5543, allocations: 24.44 kB / 389.2 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5544, allocations: 27.73 kB / 389.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.5544, allocations: 8.656 kB / 389.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003636/0.5548, allocations: 217.9 kB / 389.4 MB, free: 21.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5548, allocations: 1.281 kB / 389.4 MB, free: 21.74 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005392/0.5554, allocations: 68.81 kB / 389.5 MB, free: 21.73 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.0008178/0.5562, allocations: 0.7994 MB / 390.3 MB, free: 21.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006987/0.5569, allocations: 306.1 kB / 390.6 MB, free: 20.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5569, allocations: 0 / 390.6 MB, free: 20.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003624/0.5573, allocations: 165.7 kB / 390.8 MB, free: 20.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.5577, allocations: 41.91 kB / 390.8 MB, free: 20.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.5588, allocations: 335.7 kB / 391.1 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.5592, allocations: 0.7599 MB / 391.9 MB, free: 19.83 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002028/0.5594, allocations: 32.91 kB / 391.9 MB, free: 19.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.5596, allocations: 82.11 kB / 392 MB, free: 19.82 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5596, allocations: 0 / 392 MB, free: 19.82 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.5934, allocations: 5.135 MB / 397.1 MB, free: 19.31 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.5937, allocations: 174.3 kB / 397.3 MB, free: 19.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/3.135, allocations: 0 / 397.3 MB, free: 19.09 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