Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.651e-05/2.646e-05, allocations: 7.984 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09228, allocations: 44.49 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.4956, allocations: 75.32 MB / 375.3 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.4959, allocations: 79.78 kB / 375.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02485/0.5208, allocations: 5.546 MB / 380.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5208, allocations: 1.062 kB / 380.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.5209, allocations: 11.05 kB / 380.9 MB, free: 12.18 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.001331/0.5222, allocations: 0.573 MB / 381.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.5223, allocations: 10.33 kB / 381.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.359e-05/0.5224, allocations: 59.62 kB / 381.6 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.181e-05/0.5225, allocations: 32.03 kB / 381.6 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.5229, allocations: 278.5 kB / 381.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.5229, allocations: 18.5 kB / 381.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/0.523, allocations: 29.2 kB / 381.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005937/0.5236, allocations: 225.1 kB / 382.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.5236, allocations: 0 / 382.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.5237, allocations: 14.06 kB / 382.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.5237, allocations: 6.922 kB / 382.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005034/0.5242, allocations: 168.1 kB / 382.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.5267, allocations: 1.085 MB / 383.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.5272, allocations: 107.2 kB / 383.5 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.5273, allocations: 43.52 kB / 383.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.5273, allocations: 1.125 kB / 383.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.5276, allocations: 117.5 kB / 383.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.254e-06/0.5276, allocations: 0 / 383.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004975/0.5281, allocations: 148.9 kB / 383.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.5282, allocations: 81.89 kB / 383.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004593/0.5287, allocations: 287.9 kB / 384.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.5287, allocations: 27.17 kB / 384.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.5288, allocations: 258.4 kB / 384.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.5289, allocations: 31.36 kB / 384.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.5289, allocations: 3.969 kB / 384.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.529, allocations: 323.7 kB / 384.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.5292, allocations: 54.78 kB / 384.8 MB, free: 9.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.5294, allocations: 150.7 kB / 385 MB, free: 9.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.5296, allocations: 100 kB / 385.1 MB, free: 9.727 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5296, allocations: 1.375 kB / 385.1 MB, free: 9.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006594/0.5303, allocations: 281.4 kB / 385.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/0.5304, allocations: 32.58 kB / 385.4 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5304, allocations: 8.062 kB / 385.4 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002217/0.5306, allocations: 34.28 kB / 385.4 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.5311, allocations: 62.08 kB / 385.5 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009968/0.5321, allocations: 1.301 MB / 386.8 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006056/0.5327, allocations: 53.34 kB / 386.9 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.5328, allocations: 14.25 kB / 386.9 MB, free: 8.285 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.0001109/0.5329, allocations: 132.8 kB / 387 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/0.533, allocations: 24.09 kB / 387 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.666e-05/0.533, allocations: 25.39 kB / 387 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.5331, allocations: 2.75 kB / 387 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.5331, allocations: 4 kB / 387.1 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5331, allocations: 1.375 kB / 387.1 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005304/0.5336, allocations: 447.9 kB / 387.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.5336, allocations: 0 / 387.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.5339, allocations: 34.59 kB / 387.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.5341, allocations: 22.8 kB / 387.5 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.5341, allocations: 8.562 kB / 387.6 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009285/0.5351, allocations: 1.292 MB / 388.8 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5351, allocations: 160 / 388.8 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.5355, allocations: 197.1 kB / 389 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.5356, allocations: 102.8 kB / 389.1 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.805e-05/0.5357, allocations: 9.031 kB / 389.1 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/0.5361, allocations: 27.91 kB / 389.2 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.987e-05/0.5362, allocations: 22.62 kB / 389.2 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.5363, allocations: 3.125 kB / 389.2 MB, free: 6.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003372/0.5366, allocations: 224.7 kB / 389.4 MB, free: 6.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5366, allocations: 0 / 389.4 MB, free: 6.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005468/0.5372, allocations: 67.06 kB / 389.5 MB, free: 6.223 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.0009981/0.5382, allocations: 0.7954 MB / 390.3 MB, free: 21.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007648/0.539, allocations: 308.7 kB / 390.6 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.539, allocations: 1.312 kB / 390.6 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.5393, allocations: 162.1 kB / 390.7 MB, free: 21.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.5398, allocations: 40.41 kB / 390.8 MB, free: 21.22 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.5409, allocations: 364.1 kB / 391.1 MB, free: 21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.5412, allocations: 0.7596 MB / 391.9 MB, free: 20.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.5415, allocations: 85.2 kB / 392 MB, free: 20.29 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5415, allocations: 0 / 392 MB, free: 20.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.53/3.072, allocations: 5.411 MB / 397.4 MB, free: 19.95 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat