Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.235e-05, allocations: 4 kB / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 50.41 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5366, allocations: 81.85 MB / 425 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.537, allocations: 79.89 kB / 425.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02806/0.5651, allocations: 6.218 MB / 431.3 MB, free: 6.988 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5651, allocations: 0 / 431.3 MB, free: 6.988 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.486e-05/0.5651, allocations: 8 kB / 431.3 MB, free: 6.98 MB / 346.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.001618/0.5668, allocations: 0.596 MB / 431.9 MB, free: 6.352 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.5668, allocations: 8.031 kB / 431.9 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.5669, allocations: 60.73 kB / 432 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.5671, allocations: 39.53 kB / 432 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005267/0.5676, allocations: 286 kB / 432.3 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.5677, allocations: 15.75 kB / 432.3 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.341e-05/0.5677, allocations: 23.06 kB / 432.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006638/0.5684, allocations: 272.4 kB / 432.6 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.5685, allocations: 3.984 kB / 432.6 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.5685, allocations: 10.06 kB / 432.6 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.5685, allocations: 8 kB / 432.6 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.5691, allocations: 177.9 kB / 432.8 MB, free: 5.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.5721, allocations: 1.216 MB / 434 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.5725, allocations: 98.45 kB / 434.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.5727, allocations: 45.86 kB / 434.2 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.5727, allocations: 0 / 434.2 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.573, allocations: 122.6 kB / 434.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.908e-06/0.5731, allocations: 0 / 434.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005434/0.5736, allocations: 151.5 kB / 434.4 MB, free: 4.156 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.5737, allocations: 80.23 kB / 434.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.5742, allocations: 288.2 kB / 434.8 MB, free: 3.832 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.5742, allocations: 29.7 kB / 434.8 MB, free: 3.797 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.5744, allocations: 214.4 kB / 435 MB, free: 3.621 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.39e-05/0.5745, allocations: 30.33 kB / 435.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.5745, allocations: 7.438 kB / 435.1 MB, free: 3.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.5747, allocations: 337.1 kB / 435.4 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.5749, allocations: 57.11 kB / 435.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.5751, allocations: 166.6 kB / 435.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.5754, allocations: 98.23 kB / 435.7 MB, free: 2.965 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.5754, allocations: 8 kB / 435.7 MB, free: 2.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007754/0.5762, allocations: 288.3 kB / 436 MB, free: 2.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.5763, allocations: 34.2 kB / 436 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.5763, allocations: 8 kB / 436 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/0.5765, allocations: 35.95 kB / 436.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.5771, allocations: 75.08 kB / 436.2 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.5784, allocations: 1.306 MB / 437.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.5791, allocations: 62.92 kB / 437.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.08e-05/0.5792, allocations: 15.25 kB / 437.5 MB, free: 1.105 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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.0001375/0.5793, allocations: 121.9 kB / 437.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.034e-05/0.5794, allocations: 27.62 kB / 437.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.606e-05/0.5795, allocations: 29.36 kB / 437.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5795, allocations: 4 kB / 437.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.5795, allocations: 3.953 kB / 437.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5795, allocations: 7.938 kB / 437.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/0.5802, allocations: 446 kB / 438.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5802, allocations: 4 kB / 438.2 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.5806, allocations: 39.98 kB / 438.2 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00017/0.5808, allocations: 28.22 kB / 438.2 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.5808, allocations: 7.953 kB / 438.2 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.582, allocations: 1.29 MB / 439.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5821, allocations: 0 / 439.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000487/0.5826, allocations: 202.2 kB / 439.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.5827, allocations: 104.2 kB / 439.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.5828, allocations: 7.812 kB / 439.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.5832, allocations: 27.97 kB / 439.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5834, allocations: 31.7 kB / 439.9 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.5834, allocations: 4 kB / 439.9 MB, free: 14.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003594/0.5838, allocations: 226.8 kB / 440.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5838, allocations: 0 / 440.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005308/0.5843, allocations: 71.34 kB / 440.2 MB, free: 14.43 MB / 362.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.0008488/0.5852, allocations: 0.7982 MB / 441 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.5859, allocations: 311.8 kB / 441.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5859, allocations: 0 / 441.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003465/0.5863, allocations: 170 kB / 441.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.5867, allocations: 43.7 kB / 441.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.5878, allocations: 350.1 kB / 441.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.5882, allocations: 0.76 MB / 442.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.5885, allocations: 38.95 kB / 442.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.5887, allocations: 88.09 kB / 442.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5887, allocations: 0 / 442.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.6209, allocations: 5.321 MB / 448.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000336/0.6213, allocations: 178.5 kB / 448.2 MB, free: 6.523 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.253, allocations: 7.938 kB / 448.2 MB, free: 6.516 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat