Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.49e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.09897, allocations: 44.51 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.5152, allocations: 75.27 MB / 375.2 MB, free: 12.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5155, allocations: 67.48 kB / 375.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04703/0.5625, allocations: 10.16 MB / 385.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5626, allocations: 0 / 385.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.641e-05/0.5627, allocations: 13.16 kB / 385.4 MB, free: 11.89 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004806/0.5675, allocations: 1.077 MB / 386.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.5676, allocations: 9.281 kB / 386.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000381/0.5679, allocations: 100.4 kB / 386.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.5683, allocations: 75.77 kB / 386.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.569, allocations: 426.4 kB / 387.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.766e-05/0.5691, allocations: 42.66 kB / 387.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.5693, allocations: 49.16 kB / 387.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.5711, allocations: 0.7371 MB / 387.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.5711, allocations: 3.312 kB / 387.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.5713, allocations: 20.66 kB / 388 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.5713, allocations: 15.53 kB / 388 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.5729, allocations: 0.5971 MB / 388.6 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007265/0.5802, allocations: 3.15 MB / 391.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.582, allocations: 0.6853 MB / 392.4 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008635/0.5829, allocations: 311.7 kB / 392.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.245e-05/0.583, allocations: 15.33 kB / 392.7 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007994/0.5838, allocations: 328 kB / 393.1 MB, free: 9.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.056e-06/0.5839, allocations: 0 / 393.1 MB, free: 9.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001454/0.5853, allocations: 0.4951 MB / 393.5 MB, free: 8.945 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.5854, allocations: 273.1 kB / 393.8 MB, free: 8.633 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007335/0.5862, allocations: 442.2 kB / 394.2 MB, free: 8.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.5863, allocations: 40.89 kB / 394.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.5866, allocations: 374 kB / 394.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.5868, allocations: 168.6 kB / 394.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.702e-05/0.5869, allocations: 15.44 kB / 394.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.5869, allocations: 340.9 kB / 395.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006835/0.5876, allocations: 251.4 kB / 395.4 MB, free: 7.785 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008095/0.5885, allocations: 0.5028 MB / 395.9 MB, free: 7.477 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007074/0.5892, allocations: 321.7 kB / 396.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.5892, allocations: 7.906 kB / 396.2 MB, free: 7.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001935/0.5911, allocations: 0.8091 MB / 397 MB, free: 7.223 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.5912, allocations: 64.41 kB / 397.1 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.5913, allocations: 7.531 kB / 397.1 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.998e-05/0.5913, allocations: 7.844 kB / 397.1 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/0.5933, allocations: 248.3 kB / 397.4 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.5934, allocations: 21.92 kB / 397.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002093/0.5955, allocations: 220.1 kB / 397.6 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.5956, allocations: 29.89 kB / 397.6 MB, free: 7.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002777/0.5959, allocations: 156 kB / 397.8 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.5961, allocations: 58.58 kB / 397.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.5963, allocations: 68.7 kB / 397.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5964, allocations: 3.844 kB / 397.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5964, allocations: 0 / 397.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.5964, allocations: 3.094 kB / 397.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.5993, allocations: 1.383 MB / 399.3 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5993, allocations: 0 / 399.3 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/0.6009, allocations: 181.2 kB / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.6009, allocations: 0 / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.217e-05/0.601, allocations: 11.66 kB / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.601, allocations: 3.875 kB / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.601, allocations: 0 / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.6032, allocations: 0.9016 MB / 400.4 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.6035, allocations: 147.1 kB / 400.5 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.6037, allocations: 9.938 kB / 400.5 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.6053, allocations: 139.5 kB / 400.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.6056, allocations: 58.12 kB / 400.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/0.6057, allocations: 13.52 kB / 400.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005661/0.6062, allocations: 328.9 kB / 401.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6063, allocations: 0 / 401.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001076/0.6073, allocations: 166.6 kB / 401.2 MB, free: 6.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002491/0.6099, allocations: 1.476 MB / 402.7 MB, free: 5.438 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.6117, allocations: 0.7094 MB / 403.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.6117, allocations: 3.875 kB / 403.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007335/0.6125, allocations: 276.1 kB / 403.7 MB, free: 5.266 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009033/0.6134, allocations: 85.23 kB / 403.8 MB, free: 5.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.6169, allocations: 0.9778 MB / 404.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000643/0.6176, allocations: 0.8721 MB / 405.6 MB, free: 20.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007963/0.6184, allocations: 213.6 kB / 405.8 MB, free: 20.15 MB / 330.7 MB Notification: Performance of SimCode: time 1.372e-06/0.6185, allocations: 0 / 405.8 MB, free: 20.15 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.67/3.289, allocations: 10.8 MB / 416.6 MB, free: 16.18 MB / 330.7 MB