Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.567e-05, allocations: 5.562 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.41 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4312/0.5358, allocations: 81.93 MB / 424.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.5362, allocations: 83.88 kB / 424.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02831/0.5645, allocations: 6.211 MB / 430.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5646, allocations: 0 / 430.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.43e-05/0.5646, allocations: 8 kB / 430.9 MB, free: 6.488 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.001549/0.5662, allocations: 0.6053 MB / 431.5 MB, free: 5.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5662, allocations: 8.031 kB / 431.5 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.383e-05/0.5663, allocations: 57.42 kB / 431.5 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.5664, allocations: 39.53 kB / 431.6 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.5669, allocations: 281.3 kB / 431.9 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.567, allocations: 16.25 kB / 431.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.5671, allocations: 23.5 kB / 431.9 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006422/0.5677, allocations: 271.8 kB / 432.2 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.5678, allocations: 0 / 432.2 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.5678, allocations: 15.75 kB / 432.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.5678, allocations: 11.92 kB / 432.2 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005232/0.5684, allocations: 184.8 kB / 432.4 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.5713, allocations: 1.213 MB / 433.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.5718, allocations: 101.3 kB / 433.7 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.5719, allocations: 44.36 kB / 433.7 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.572, allocations: 4 kB / 433.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.5723, allocations: 112.5 kB / 433.8 MB, free: 3.789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 4.048e-06/0.5723, allocations: 0 / 433.8 MB, free: 3.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005083/0.5728, allocations: 156.7 kB / 434 MB, free: 3.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.5729, allocations: 81.14 kB / 434.1 MB, free: 3.559 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004624/0.5734, allocations: 289 kB / 434.4 MB, free: 3.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.5734, allocations: 29.7 kB / 434.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.5736, allocations: 261.9 kB / 434.6 MB, free: 3.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.5736, allocations: 30.95 kB / 434.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.5737, allocations: 7.75 kB / 434.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.5738, allocations: 322.5 kB / 435 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.574, allocations: 53.67 kB / 435 MB, free: 2.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.5743, allocations: 164 kB / 435.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.5745, allocations: 99.8 kB / 435.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5745, allocations: 0 / 435.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007121/0.5752, allocations: 289.3 kB / 435.6 MB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.5753, allocations: 40.94 kB / 435.6 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.5753, allocations: 4 kB / 435.6 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/0.5755, allocations: 28.66 kB / 435.7 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/0.5761, allocations: 71.98 kB / 435.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.5774, allocations: 1.312 MB / 437 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.578, allocations: 54.66 kB / 437.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.5781, allocations: 15.5 kB / 437.1 MB, free: 0.5781 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.0001283/0.5782, allocations: 120.6 kB / 437.2 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.5783, allocations: 35.31 kB / 437.3 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.784e-05/0.5784, allocations: 25.95 kB / 437.3 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.5784, allocations: 3.938 kB / 437.3 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.5784, allocations: 3.953 kB / 437.3 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.5784, allocations: 7.922 kB / 437.3 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006107/0.5791, allocations: 450 kB / 437.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5791, allocations: 0 / 437.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003373/0.5794, allocations: 47.92 kB / 437.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.5796, allocations: 23.91 kB / 437.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.5796, allocations: 3.953 kB / 437.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.5808, allocations: 1.293 MB / 439.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5809, allocations: 4.031 kB / 439.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.5813, allocations: 198 kB / 439.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.5815, allocations: 103.6 kB / 439.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.235e-05/0.5815, allocations: 4 kB / 439.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.582, allocations: 39.83 kB / 439.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.874e-05/0.5821, allocations: 19.22 kB / 439.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.5821, allocations: 4 kB / 439.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003419/0.5825, allocations: 223.9 kB / 439.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5825, allocations: 0 / 439.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005179/0.583, allocations: 71.58 kB / 439.8 MB, free: 13.9 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.000825/0.5839, allocations: 0.8053 MB / 440.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007183/0.5846, allocations: 308.4 kB / 440.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5846, allocations: 192 / 440.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.585, allocations: 169.1 kB / 441 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.5854, allocations: 39.27 kB / 441.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.5865, allocations: 376.7 kB / 441.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.5869, allocations: 0.7677 MB / 442.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.5872, allocations: 88.97 kB / 442.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of SimCode: time 8.51e-07/0.5872, allocations: 0 / 442.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.632/3.219, allocations: 5.607 MB / 447.9 MB, free: 5.898 MB / 362.7 MB