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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2439/1.859, allocations: 46.83 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/1.946, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2765/2.222, allocations: 74.55 MB / 368.5 MB, free: 6.973 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/2.223, allocations: 70.42 kB / 368.5 MB, free: 6.973 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.04923/2.272, allocations: 11.17 MB / 379.7 MB, free: 4.668 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/2.272, allocations: 11.72 kB / 379.7 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002744/2.272, allocations: 73.38 kB / 379.8 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007618/2.273, allocations: 423.1 kB / 380.2 MB, free: 4.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/2.273, allocations: 23.28 kB / 380.2 MB, free: 4.336 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/2.273, allocations: 34.98 kB / 380.2 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001776/2.275, allocations: 0.5657 MB / 380.8 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/2.277, allocations: 0.6501 MB / 381.5 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/2.277, allocations: 3.938 kB / 381.5 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/2.277, allocations: 3.969 kB / 381.5 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/2.277, allocations: 15.53 kB / 381.5 MB, free: 4.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007639/2.285, allocations: 3.105 MB / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/2.286, allocations: 433.7 kB / 385 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006473/2.286, allocations: 252.2 kB / 385.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.668e-05/2.286, allocations: 16.08 kB / 385.3 MB, free: 18.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007545/2.287, allocations: 295.3 kB / 385.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.958e-06/2.287, allocations: 0 / 385.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001485/2.289, allocations: 485.9 kB / 386 MB, free: 17.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/2.289, allocations: 269.2 kB / 386.3 MB, free: 17.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000752/2.29, allocations: 403.6 kB / 386.7 MB, free: 17.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/2.29, allocations: 32.55 kB / 386.7 MB, free: 17.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/2.29, allocations: 289.5 kB / 387 MB, free: 17.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/2.29, allocations: 158.7 kB / 387.2 MB, free: 17.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/2.29, allocations: 3.875 kB / 387.2 MB, free: 17.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/2.29, allocations: 365.2 kB / 387.5 MB, free: 16.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007356/2.291, allocations: 241.5 kB / 387.8 MB, free: 16.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008572/2.292, allocations: 488.4 kB / 388.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007024/2.293, allocations: 273 kB / 388.5 MB, free: 16.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/2.293, allocations: 4 kB / 388.5 MB, free: 16.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001983/2.295, allocations: 0.7037 MB / 389.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/2.295, allocations: 7.656 kB / 389.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/2.295, allocations: 7.891 kB / 389.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/2.295, allocations: 11.47 kB / 389.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/2.297, allocations: 265 kB / 389.5 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.284e-05/2.297, allocations: 19.5 kB / 389.5 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002312/2.299, allocations: 230.1 kB / 389.7 MB, free: 16.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/2.3, allocations: 29.88 kB / 389.8 MB, free: 16.05 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.0002684/2.3, allocations: 139.5 kB / 389.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/2.3, allocations: 58.59 kB / 390 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/2.3, allocations: 57.92 kB / 390 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/2.3, allocations: 7.812 kB / 390 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/2.3, allocations: 0 / 390 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/2.3, allocations: 3.984 kB / 390 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/2.301, allocations: 0.6206 MB / 390.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/2.301, allocations: 3.969 kB / 390.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/2.303, allocations: 197.5 kB / 390.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/2.303, allocations: 0 / 390.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.278e-05/2.303, allocations: 7.75 kB / 390.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/2.303, allocations: 11.72 kB / 390.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/2.303, allocations: 0 / 390.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002199/2.306, allocations: 0.8049 MB / 391.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003023/2.309, allocations: 1.475 MB / 393.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/2.309, allocations: 142.6 kB / 393.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/2.309, allocations: 7.828 kB / 393.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/2.311, allocations: 158.6 kB / 393.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/2.311, allocations: 54.05 kB / 393.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/2.311, allocations: 19.17 kB / 393.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005224/2.312, allocations: 296.6 kB / 393.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001677/2.313, allocations: 147.4 kB / 393.9 MB, free: 14.47 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 (VIN2.signalSource.count,VIN1.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.0002422/2.314, allocations: 114.5 kB / 394.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001749/2.315, allocations: 0.6389 MB / 394.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/2.315, allocations: 4.062 kB / 394.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007342/2.316, allocations: 273.8 kB / 395 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/2.317, allocations: 60.53 kB / 395 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/2.32, allocations: 0.8605 MB / 395.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/2.321, allocations: 0.938 MB / 396.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.163e-06/2.321, allocations: 0 / 396.8 MB, free: 13.06 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