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.381/2.381, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.134e-05, allocations: 3.688 kB / 249.8 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5142/0.6178, allocations: 74.61 MB / 368.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003379/0.6183, allocations: 74.84 kB / 369 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05581/0.6741, allocations: 10.07 MB / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6742, allocations: 0 / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.6742, allocations: 11.75 kB / 379 MB, free: 21.14 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.004458/0.6787, allocations: 1.079 MB / 380.1 MB, free: 20.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.6787, allocations: 7.625 kB / 380.1 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.679, allocations: 73.78 kB / 380.2 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007822/0.6798, allocations: 423.8 kB / 380.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.304e-05/0.6799, allocations: 22.73 kB / 380.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.68, allocations: 34.09 kB / 380.7 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001684/0.6817, allocations: 0.5536 MB / 381.2 MB, free: 20.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.6834, allocations: 0.6598 MB / 381.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.6834, allocations: 0 / 381.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.6836, allocations: 3.406 kB / 381.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.6836, allocations: 15.3 kB / 381.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007534/0.6911, allocations: 3.067 MB / 385 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.693, allocations: 0.664 MB / 385.6 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008376/0.6938, allocations: 290.7 kB / 385.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.99e-05/0.6939, allocations: 18.97 kB / 385.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008023/0.6947, allocations: 306.2 kB / 386.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.178e-06/0.6948, allocations: 4 kB / 386.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001494/0.6963, allocations: 487.9 kB / 386.7 MB, free: 17.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.6965, allocations: 276.7 kB / 387 MB, free: 17.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006749/0.6972, allocations: 403.4 kB / 387.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.705e-05/0.6973, allocations: 33.33 kB / 387.4 MB, free: 16.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.6976, allocations: 329.8 kB / 387.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.6978, allocations: 163.8 kB / 387.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.477e-05/0.6979, allocations: 0 / 387.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.6981, allocations: 368.2 kB / 388.3 MB, free: 16.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006523/0.6987, allocations: 238.8 kB / 388.5 MB, free: 16.26 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.6996, allocations: 480.5 kB / 389 MB, free: 15.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006786/0.7003, allocations: 266.8 kB / 389.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.647e-06/0.7003, allocations: 3.844 kB / 389.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002041/0.7023, allocations: 0.7059 MB / 389.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.531e-05/0.7024, allocations: 65.72 kB / 390 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.7025, allocations: 7.75 kB / 390 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.7025, allocations: 7.75 kB / 390 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.7048, allocations: 256.7 kB / 390.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.991e-05/0.7048, allocations: 15.59 kB / 390.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.7071, allocations: 196.1 kB / 390.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.7072, allocations: 38.3 kB / 390.5 MB, free: 15.53 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.0003036/0.7076, allocations: 131.6 kB / 390.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001341/0.7089, allocations: 482.2 kB / 391.1 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.7091, allocations: 54.62 kB / 391.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.7093, allocations: 69.64 kB / 391.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.7093, allocations: 3.969 kB / 391.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.7093, allocations: 0 / 391.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.7094, allocations: 3.984 kB / 391.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002986/0.7124, allocations: 1.285 MB / 392.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.7124, allocations: 0 / 392.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/0.7142, allocations: 174.5 kB / 392.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.7142, allocations: 0 / 392.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.044e-05/0.7143, allocations: 7.375 kB / 392.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.7143, allocations: 3.875 kB / 392.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.7143, allocations: 0 / 392.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.7164, allocations: 0.8736 MB / 393.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.7166, allocations: 138.8 kB / 393.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.7168, allocations: 6.781 kB / 393.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.7185, allocations: 129.6 kB / 393.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.7187, allocations: 57.59 kB / 393.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.939e-05/0.7188, allocations: 18.94 kB / 393.9 MB, free: 14.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005082/0.7193, allocations: 296.5 kB / 394.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7193, allocations: 0 / 394.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001002/0.7204, allocations: 153.4 kB / 394.4 MB, free: 14.14 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.003398/0.7238, allocations: 1.429 MB / 395.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.7266, allocations: 0.682 MB / 396.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.7267, allocations: 0.6875 kB / 396.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.7279, allocations: 271 kB / 396.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.7293, allocations: 53.81 kB / 396.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.7345, allocations: 0.8984 MB / 397.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.7354, allocations: 0.8719 MB / 398.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001452/0.7369, allocations: 78.75 kB / 398.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009631/0.7379, allocations: 200.5 kB / 398.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of SimCode: time 2.204e-06/0.7379, allocations: 0 / 398.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0754/0.8133, allocations: 11.05 MB / 409.9 MB, free: 6.332 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003075/0.8137, allocations: 139.4 kB / 410 MB, free: 6.137 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.741/4.554, allocations: 0 / 410 MB, free: 6.137 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.NandGate_res.mat does not exist to compare? outputFormat=mat