Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.516/2.516, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.006e-05, allocations: 3.25 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 44.5 MB / 294.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5205/0.6264, allocations: 74.61 MB / 368.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.6267, allocations: 70.44 kB / 368.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05347/0.6802, allocations: 10.11 MB / 379.1 MB, free: 21.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6803, allocations: 4 kB / 379.1 MB, free: 21.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.552e-05/0.6803, allocations: 11.62 kB / 379.1 MB, free: 21.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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004781/0.6851, allocations: 1.073 MB / 380.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.6852, allocations: 11.81 kB / 380.2 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002246/0.6854, allocations: 75.77 kB / 380.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.6857, allocations: 81.17 kB / 380.3 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008504/0.6866, allocations: 422 kB / 380.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.621e-05/0.6867, allocations: 24.44 kB / 380.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.6869, allocations: 31.06 kB / 380.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001801/0.6887, allocations: 0.5635 MB / 381.3 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.6905, allocations: 0.6541 MB / 382 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.6905, allocations: 7.906 kB / 382 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.6907, allocations: 4 kB / 382 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.6907, allocations: 15.44 kB / 382 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008726/0.6995, allocations: 3.063 MB / 385.1 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.7015, allocations: 0.6617 MB / 385.7 MB, free: 17.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009628/0.7025, allocations: 297 kB / 386 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.434e-05/0.7026, allocations: 15.44 kB / 386 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008507/0.7035, allocations: 310 kB / 386.3 MB, free: 17.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.478e-06/0.7035, allocations: 4 kB / 386.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001684/0.7052, allocations: 484.3 kB / 386.8 MB, free: 17.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/0.7054, allocations: 269.2 kB / 387.1 MB, free: 17.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007995/0.7063, allocations: 404.8 kB / 387.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.7064, allocations: 36.97 kB / 387.5 MB, free: 17.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003252/0.7068, allocations: 331.3 kB / 387.8 MB, free: 16.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.707, allocations: 158.8 kB / 388 MB, free: 16.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-05/0.7071, allocations: 0 / 388 MB, free: 16.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.7074, allocations: 367.8 kB / 388.4 MB, free: 16.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007192/0.7081, allocations: 235.6 kB / 388.6 MB, free: 16.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009075/0.709, allocations: 481 kB / 389.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007348/0.7098, allocations: 268.1 kB / 389.3 MB, free: 16.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.7098, allocations: 3.938 kB / 389.3 MB, free: 16.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002159/0.712, allocations: 0.7048 MB / 390 MB, free: 15.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.952e-05/0.7121, allocations: 68.41 kB / 390.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.7121, allocations: 3.875 kB / 390.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.489e-05/0.7122, allocations: 15.55 kB / 390.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.7146, allocations: 254 kB / 390.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.027e-05/0.7146, allocations: 11.69 kB / 390.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/0.717, allocations: 207.7 kB / 390.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.7172, allocations: 30.81 kB / 390.6 MB, free: 15.63 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.0003405/0.7176, allocations: 131.1 kB / 390.7 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/0.7177, allocations: 62.36 kB / 390.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002556/0.718, allocations: 63.14 kB / 390.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.718, allocations: 3.844 kB / 390.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/0.7181, allocations: 3.953 kB / 390.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.7181, allocations: 3.984 kB / 390.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00325/0.7213, allocations: 1.264 MB / 392.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.7214, allocations: 11.89 kB / 392.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/0.7233, allocations: 179.8 kB / 392.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/0.7233, allocations: 3.938 kB / 392.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-05/0.7234, allocations: 11.8 kB / 392.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.7234, allocations: 4.016 kB / 392.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.7235, allocations: 3.984 kB / 392.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.7258, allocations: 0.8575 MB / 393.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.726, allocations: 147.2 kB / 393.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.7262, allocations: 7.922 kB / 393.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/0.728, allocations: 133.3 kB / 393.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.7282, allocations: 54.73 kB / 393.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.7283, allocations: 11.44 kB / 393.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005501/0.7289, allocations: 303.5 kB / 393.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.7289, allocations: 0 / 393.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009814/0.7299, allocations: 152.1 kB / 394 MB, free: 14.33 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.002674/0.7326, allocations: 1.42 MB / 395.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.7344, allocations: 0.6753 MB / 396.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7344, allocations: 0 / 396.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007253/0.7352, allocations: 270.2 kB / 396.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008074/0.736, allocations: 65.73 kB / 396.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.7394, allocations: 0.8973 MB / 397.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.74, allocations: 0.875 MB / 398.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009097/0.7409, allocations: 79.53 kB / 398.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.7416, allocations: 194.5 kB / 398.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7416, allocations: 0 / 398.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1276/0.8692, allocations: 11.43 MB / 409.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003205/0.8696, allocations: 147.5 kB / 410 MB, free: 6.211 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.116/4.985, allocations: 3.938 kB / 410 MB, free: 6.207 MB / 314.7 MB