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.092/2.092, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.476e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3351, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.4772, allocations: 74.61 MB / 368.8 MB, free: 7.281 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.4775, allocations: 71.95 kB / 368.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04794/0.5255, allocations: 10.06 MB / 378.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5255, allocations: 7.938 kB / 378.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.323e-05/0.5256, allocations: 12 kB / 379 MB, free: 13.11 MB / 330.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.004539/0.5301, allocations: 1.073 MB / 380 MB, free: 11.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.5302, allocations: 12.03 kB / 380 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004384/0.5307, allocations: 79.08 kB / 380.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.5317, allocations: 423.3 kB / 380.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.906e-05/0.5318, allocations: 20 kB / 380.6 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.532, allocations: 32 kB / 380.6 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001775/0.5337, allocations: 0.5572 MB / 381.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.5356, allocations: 0.6541 MB / 381.8 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.5357, allocations: 7.984 kB / 381.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.5358, allocations: 4 kB / 381.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.5358, allocations: 12 kB / 381.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008562/0.5444, allocations: 3.065 MB / 384.9 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.5464, allocations: 0.6662 MB / 385.6 MB, free: 6.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009579/0.5474, allocations: 290.5 kB / 385.8 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.515e-05/0.5475, allocations: 16.56 kB / 385.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008677/0.5484, allocations: 312.4 kB / 386.2 MB, free: 5.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.617e-06/0.5484, allocations: 0 / 386.2 MB, free: 5.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.001517/0.5499, allocations: 491.4 kB / 386.6 MB, free: 5.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.5501, allocations: 269.5 kB / 386.9 MB, free: 4.742 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.5509, allocations: 405 kB / 387.3 MB, free: 4.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001925/0.5512, allocations: 29.7 kB / 387.3 MB, free: 4.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/0.5515, allocations: 374.1 kB / 387.7 MB, free: 3.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.5518, allocations: 161.7 kB / 387.8 MB, free: 3.777 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.5519, allocations: 0 / 387.8 MB, free: 3.777 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.5521, allocations: 338.8 kB / 388.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006947/0.5528, allocations: 233.5 kB / 388.4 MB, free: 3.211 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009078/0.5537, allocations: 486.2 kB / 388.9 MB, free: 2.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007351/0.5545, allocations: 258.7 kB / 389.1 MB, free: 2.371 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.5545, allocations: 8 kB / 389.1 MB, free: 2.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002056/0.5565, allocations: 0.6862 MB / 389.8 MB, free: 1.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.054e-05/0.5567, allocations: 59.41 kB / 389.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.5567, allocations: 8 kB / 389.9 MB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.773e-05/0.5568, allocations: 8 kB / 389.9 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.559, allocations: 256 kB / 390.2 MB, free: 1.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.065e-05/0.5591, allocations: 15.94 kB / 390.2 MB, free: 1.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.5613, allocations: 203 kB / 390.4 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.5614, allocations: 31.98 kB / 390.4 MB, free: 1.086 MB / 330.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.0002899/0.5617, allocations: 136.5 kB / 390.5 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001511/0.5633, allocations: 483.5 kB / 391 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.5635, allocations: 55.34 kB / 391.1 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.5637, allocations: 69.17 kB / 391.1 MB, free: 356 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.5638, allocations: 7.984 kB / 391.1 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.5638, allocations: 0 / 391.1 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5638, allocations: 0 / 391.1 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004466/0.5683, allocations: 1.288 MB / 392.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5684, allocations: 4 kB / 392.4 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/0.5701, allocations: 179.8 kB / 392.6 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/0.5702, allocations: 0 / 392.6 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.5703, allocations: 4 kB / 392.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.5703, allocations: 4 kB / 392.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5703, allocations: 0 / 392.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.5726, allocations: 0.873 MB / 393.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/0.5729, allocations: 144.3 kB / 393.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.5732, allocations: 4 kB / 393.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.5748, allocations: 131.9 kB / 393.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.5751, allocations: 52.36 kB / 393.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.382e-05/0.5752, allocations: 19.98 kB / 393.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005744/0.5758, allocations: 295 kB / 394.1 MB, free: 13.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5758, allocations: 0 / 394.1 MB, free: 13.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001055/0.5768, allocations: 151.7 kB / 394.3 MB, free: 13.13 MB / 346.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.002765/0.5796, allocations: 1.418 MB / 395.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.5815, allocations: 0.6796 MB / 396.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5815, allocations: 0 / 396.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007482/0.5823, allocations: 265.6 kB / 396.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008529/0.5832, allocations: 70 kB / 396.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.5868, allocations: 0.9289 MB / 397.6 MB, free: 9.688 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000584/0.5875, allocations: 0.8706 MB / 398.5 MB, free: 8.789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000859/0.5883, allocations: 207.4 kB / 398.7 MB, free: 8.586 MB / 346.7 MB Notification: Performance of SimCode: time 2.955e-06/0.5884, allocations: 0 / 398.7 MB, free: 8.586 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.542/3.131, allocations: 10.6 MB / 409.3 MB, free: 13.99 MB / 362.7 MB