Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.554e-05/3.559e-05, allocations: 4 kB / 292.3 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 342.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4977/0.6067, allocations: 81.88 MB / 424.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.607, allocations: 77.7 kB / 424.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02987/0.637, allocations: 6.225 MB / 430.8 MB, free: 6.621 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.637, allocations: 0 / 430.8 MB, free: 6.621 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.637, allocations: 4 kB / 430.8 MB, free: 6.617 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.001633/0.6387, allocations: 0.5978 MB / 431.4 MB, free: 5.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.6387, allocations: 8.031 kB / 431.4 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.6389, allocations: 59.86 kB / 431.5 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.639, allocations: 35.53 kB / 431.5 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.6396, allocations: 288.6 kB / 431.8 MB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.6396, allocations: 19.38 kB / 431.8 MB, free: 5.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/0.6397, allocations: 23.31 kB / 431.9 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006682/0.6404, allocations: 267.1 kB / 432.1 MB, free: 5.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.6404, allocations: 0 / 432.1 MB, free: 5.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.131e-05/0.6405, allocations: 11.25 kB / 432.1 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.6405, allocations: 8 kB / 432.1 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005301/0.641, allocations: 178.9 kB / 432.3 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003201/0.6442, allocations: 1.22 MB / 433.5 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.6447, allocations: 101 kB / 433.6 MB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.6449, allocations: 43.42 kB / 433.7 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.6449, allocations: 4 kB / 433.7 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.6452, allocations: 117 kB / 433.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 5.23e-06/0.6452, allocations: 4 kB / 433.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005575/0.6458, allocations: 151.2 kB / 433.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.6459, allocations: 84.48 kB / 434 MB, free: 3.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004958/0.6464, allocations: 286.3 kB / 434.3 MB, free: 3.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.6465, allocations: 29.14 kB / 434.3 MB, free: 3.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.6467, allocations: 212.6 kB / 434.5 MB, free: 3.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.6467, allocations: 30.39 kB / 434.6 MB, free: 3.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.6467, allocations: 7.281 kB / 434.6 MB, free: 3.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.6469, allocations: 344.1 kB / 434.9 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.6471, allocations: 52.61 kB / 435 MB, free: 2.863 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.6474, allocations: 168.7 kB / 435.1 MB, free: 2.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.6477, allocations: 98.23 kB / 435.2 MB, free: 2.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.6477, allocations: 0 / 435.2 MB, free: 2.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008337/0.6485, allocations: 297.8 kB / 435.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.176e-05/0.6486, allocations: 37.69 kB / 435.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.6486, allocations: 4 kB / 435.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/0.6489, allocations: 32.59 kB / 435.6 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.6494, allocations: 71.27 kB / 435.7 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.6508, allocations: 1.304 MB / 437 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007141/0.6516, allocations: 63.75 kB / 437 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.6516, allocations: 12 kB / 437 MB, free: 0.7461 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.0001473/0.6518, allocations: 120.4 kB / 437.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.6519, allocations: 27.62 kB / 437.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.801e-05/0.652, allocations: 29.36 kB / 437.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.652, allocations: 4 kB / 437.2 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.652, allocations: 3.953 kB / 437.2 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.652, allocations: 11.92 kB / 437.2 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006671/0.6527, allocations: 441.1 kB / 437.7 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6527, allocations: 0 / 437.7 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.6531, allocations: 43.94 kB / 437.7 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.6533, allocations: 32.25 kB / 437.7 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.6533, allocations: 3.953 kB / 437.7 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.6547, allocations: 1.302 MB / 439 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6548, allocations: 0 / 439 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.6553, allocations: 198.5 kB / 439.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.6555, allocations: 108.1 kB / 439.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.904e-05/0.6555, allocations: 0 / 439.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.656, allocations: 39.7 kB / 439.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.6561, allocations: 19.73 kB / 439.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.6562, allocations: 3.984 kB / 439.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003761/0.6565, allocations: 229.1 kB / 439.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-07/0.6566, allocations: 0 / 439.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00056/0.6571, allocations: 71.28 kB / 439.7 MB, free: 14.07 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.000954/0.6581, allocations: 0.7993 MB / 440.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007889/0.6589, allocations: 309.7 kB / 440.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6589, allocations: 0 / 440.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.6593, allocations: 172.2 kB / 441 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.6598, allocations: 41.92 kB / 441 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.6611, allocations: 350.1 kB / 441.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.6615, allocations: 0.7638 MB / 442.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002359/0.6618, allocations: 34.91 kB / 442.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.662, allocations: 83.47 kB / 442.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.662, allocations: 0 / 442.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.6955, allocations: 5.32 MB / 447.6 MB, free: 6.395 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.6958, allocations: 181 kB / 447.7 MB, free: 6.164 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/3.292, allocations: 0 / 447.7 MB, free: 6.164 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat