Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.798/1.798, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.675e-05, allocations: 4 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2531, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3787, allocations: 69.31 MB / 327.7 MB, free: 8.473 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.3791, allocations: 67.95 kB / 327.7 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04497/0.424, allocations: 10.17 MB / 337.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4241, allocations: 0 / 337.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.217e-05/0.4242, allocations: 12 kB / 337.9 MB, free: 14.19 MB / 298.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.004111/0.4283, allocations: 1.085 MB / 339 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.4284, allocations: 8.031 kB / 339 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.4286, allocations: 71.16 kB / 339.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.4295, allocations: 427.3 kB / 339.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.4295, allocations: 19.95 kB / 339.5 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.4297, allocations: 32 kB / 339.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00166/0.4314, allocations: 0.5649 MB / 340.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.433, allocations: 0.6502 MB / 340.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.433, allocations: 0 / 340.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.4332, allocations: 4 kB / 340.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.4332, allocations: 12 kB / 340.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007682/0.4409, allocations: 3.075 MB / 343.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001841/0.4428, allocations: 0.6624 MB / 344.5 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008261/0.4437, allocations: 286.5 kB / 344.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-05/0.4438, allocations: 20.56 kB / 344.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007984/0.4446, allocations: 316.3 kB / 345.1 MB, free: 6.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.907e-06/0.4446, allocations: 0 / 345.1 MB, free: 6.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001481/0.4461, allocations: 483.5 kB / 345.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.4463, allocations: 265.5 kB / 345.8 MB, free: 5.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007259/0.447, allocations: 405.1 kB / 346.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.718e-05/0.4471, allocations: 29.7 kB / 346.3 MB, free: 5.395 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.4475, allocations: 335.5 kB / 346.6 MB, free: 5.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.4477, allocations: 161.7 kB / 346.7 MB, free: 4.902 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-05/0.4478, allocations: 0 / 346.7 MB, free: 4.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.448, allocations: 370.7 kB / 347.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006514/0.4486, allocations: 233.6 kB / 347.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000903/0.4495, allocations: 490.1 kB / 347.8 MB, free: 3.715 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006838/0.4502, allocations: 265.8 kB / 348.1 MB, free: 3.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4503, allocations: 0 / 348.1 MB, free: 3.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001978/0.4522, allocations: 0.7019 MB / 348.8 MB, free: 2.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.656e-05/0.4523, allocations: 75.02 kB / 348.9 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.4524, allocations: 4 kB / 348.9 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.761e-05/0.4524, allocations: 12 kB / 348.9 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/0.4545, allocations: 251.6 kB / 349.1 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.4545, allocations: 15.94 kB / 349.1 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.4565, allocations: 203.1 kB / 349.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.4566, allocations: 36 kB / 349.4 MB, free: 2.156 MB / 298.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.0002643/0.4569, allocations: 130.1 kB / 349.5 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001421/0.4583, allocations: 487.4 kB / 350 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.4585, allocations: 55.34 kB / 350 MB, free: 1.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000242/0.4588, allocations: 57.3 kB / 350.1 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.4588, allocations: 4 kB / 350.1 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4588, allocations: 4 kB / 350.1 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4588, allocations: 3.984 kB / 350.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003053/0.4619, allocations: 1.287 MB / 351.4 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.462, allocations: 0 / 351.4 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/0.4636, allocations: 183.7 kB / 351.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.4636, allocations: 4 kB / 351.6 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.486e-05/0.4637, allocations: 15.94 kB / 351.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.279e-06/0.4637, allocations: 0 / 351.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4637, allocations: 0 / 351.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.466, allocations: 0.8653 MB / 352.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.4662, allocations: 132.3 kB / 352.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.4664, allocations: 12.06 kB / 352.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.4679, allocations: 131.8 kB / 352.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.4681, allocations: 56.36 kB / 352.8 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.586e-05/0.4682, allocations: 19.98 kB / 352.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005228/0.4687, allocations: 291 kB / 353.1 MB, free: 14.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4688, allocations: 4 kB / 353.1 MB, free: 14.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009649/0.4697, allocations: 151.7 kB / 353.2 MB, free: 14.21 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.002519/0.4723, allocations: 1.426 MB / 354.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.474, allocations: 0.6742 MB / 355.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.474, allocations: 0 / 355.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007009/0.4747, allocations: 275.3 kB / 355.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006974/0.4754, allocations: 63.14 kB / 355.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/0.4786, allocations: 0.8978 MB / 356.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005464/0.4792, allocations: 0.8745 MB / 357.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007461/0.48, allocations: 80.47 kB / 357.5 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005907/0.4806, allocations: 199.4 kB / 357.7 MB, free: 9.605 MB / 314.7 MB Notification: Performance of SimCode: time 9.71e-07/0.4806, allocations: 0 / 357.7 MB, free: 9.605 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2721/0.7526, allocations: 11.03 MB / 368.7 MB, free: 92.94 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.7529, allocations: 136 kB / 368.9 MB, free: 92.74 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.744/3.497, allocations: 0 / 368.9 MB, free: 92.74 MB / 314.7 MB