Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.671/2.671, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.177e-05/3.177e-05, allocations: 4.875 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.6187, allocations: 74.65 MB / 368.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.619, allocations: 70.56 kB / 369 MB, free: 6.969 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02755/0.6466, allocations: 5.488 MB / 374.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6466, allocations: 0 / 374.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.6467, allocations: 7.75 kB / 374.5 MB, free: 22.3 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.001485/0.6482, allocations: 0.5768 MB / 375.1 MB, free: 21.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.6482, allocations: 11.72 kB / 375.1 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.6484, allocations: 31.25 kB / 375.1 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.6489, allocations: 284.8 kB / 375.4 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.6489, allocations: 7.75 kB / 375.4 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/0.649, allocations: 15.5 kB / 375.4 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005548/0.6496, allocations: 162.4 kB / 375.6 MB, free: 21.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.6501, allocations: 196.6 kB / 375.8 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.6502, allocations: 3.938 kB / 375.8 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/0.6502, allocations: 3.984 kB / 375.8 MB, free: 21.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.6503, allocations: 3.875 kB / 375.8 MB, free: 21.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.653, allocations: 1.022 MB / 376.8 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003869/0.6534, allocations: 97.27 kB / 376.9 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.6535, allocations: 38.92 kB / 377 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.6536, allocations: 0 / 377 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.6538, allocations: 116.1 kB / 377.1 MB, free: 20.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.545e-06/0.6539, allocations: 4 kB / 377.1 MB, free: 20.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005129/0.6544, allocations: 131.1 kB / 377.2 MB, free: 20.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.6544, allocations: 84.48 kB / 377.3 MB, free: 20.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.6548, allocations: 230.5 kB / 377.5 MB, free: 20.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.6549, allocations: 29.2 kB / 377.5 MB, free: 20.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.655, allocations: 203.5 kB / 377.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.6551, allocations: 33.28 kB / 377.8 MB, free: 20.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.408e-05/0.6551, allocations: 7.969 kB / 377.8 MB, free: 20.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.6553, allocations: 338.1 kB / 378.1 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.6555, allocations: 44.31 kB / 378.1 MB, free: 20.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.6557, allocations: 155.5 kB / 378.3 MB, free: 20.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.6559, allocations: 68.66 kB / 378.4 MB, free: 20.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.6559, allocations: 0 / 378.4 MB, free: 20.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007131/0.6567, allocations: 240 kB / 378.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.6567, allocations: 43.62 kB / 378.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.6568, allocations: 3.875 kB / 378.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000249/0.657, allocations: 29.55 kB / 378.7 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.6576, allocations: 63.72 kB / 378.7 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.659, allocations: 1.259 MB / 380 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.6597, allocations: 39.36 kB / 380 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.6597, allocations: 14.97 kB / 380 MB, free: 18.68 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.00015/0.6599, allocations: 112.7 kB / 380.2 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003885/0.6603, allocations: 141 kB / 380.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.6603, allocations: 19.41 kB / 380.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.226e-05/0.6604, allocations: 30.7 kB / 380.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.6604, allocations: 3.844 kB / 380.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.6605, allocations: 3.938 kB / 380.4 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.6605, allocations: 0 / 380.4 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006205/0.6611, allocations: 406.8 kB / 380.7 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6611, allocations: 0 / 380.7 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.6614, allocations: 30.3 kB / 380.8 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001649/0.6616, allocations: 28.41 kB / 380.8 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.6617, allocations: 3.875 kB / 380.8 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.663, allocations: 1.244 MB / 382.1 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.663, allocations: 3.234 kB / 382.1 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004119/0.6634, allocations: 181.1 kB / 382.2 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.6636, allocations: 100.6 kB / 382.3 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.063e-05/0.6637, allocations: 3.625 kB / 382.3 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.6641, allocations: 27.47 kB / 382.4 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.6642, allocations: 22.92 kB / 382.4 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.6643, allocations: 3.875 kB / 382.4 MB, free: 16.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002589/0.6645, allocations: 178.9 kB / 382.6 MB, free: 16.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.704e-06/0.6645, allocations: 0 / 382.6 MB, free: 16.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006248/0.6652, allocations: 73.53 kB / 382.6 MB, free: 16.63 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.0008386/0.666, allocations: 0.792 MB / 383.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007039/0.6668, allocations: 290.8 kB / 383.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.6668, allocations: 4.844 kB / 383.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.6671, allocations: 162 kB / 383.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.6676, allocations: 31.14 kB / 383.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.6688, allocations: 325.5 kB / 384.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.6693, allocations: 0.7612 MB / 385 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002444/0.6696, allocations: 32.5 kB / 385 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.6698, allocations: 85.12 kB / 385.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of SimCode: time 1.153e-06/0.6698, allocations: 0 / 385.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05303/0.7228, allocations: 4.225 MB / 389.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002686/0.7232, allocations: 154.3 kB / 389.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.045/3.768, allocations: 0 / 389.5 MB, free: 12.41 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat